菜鸟教程小白 发表于 2022-12-11 16:41:14

iOS:SQLCipher 和 SQLite 性能?


                                            <p><p>我想使用 SQLCipher 加密数据库,但我不确定性能。</p>

<p>如果我切换到使用 SQLCipher 而不是使用 SQLite,必须牺牲多少百分比的性能?</p>

<p>我的数据库有大约 4 个表,每个表 10.000 条记录。
我最常使用 select 和订单查询。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>对于小型数据库,性能会很接近,但第一次打开数据库时的 key 派生延迟明显异常(exception)(故意很慢)。查看此内容以了解有关如何优化性能的详细信息,并确保您遵守其中的所有建议:</p>

<p> <a href="https://discuss.zetetic.net/t/sqlcipher-performance/14" rel="noreferrer noopener nofollow">https://discuss.zetetic.net/t/sqlcipher-performance/14</a> </p>

<p>要获得有关性能的准确数字,您需要转换应用程序并衡量影响。 PRAGMA cipher_profile 可以通过记录执行单个语句所需的时间来帮助您识别热点。</p></p>
                                   
                                                <p style="font-size: 20px;">关于iOS:SQLCipher 和 SQLite 性能?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/37697219/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/37697219/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iOS:SQLCipher 和 SQLite 性能?