Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1363569 - improve SQL queries in sdb_FindObjects* r=franziskus
Summary: When sqlite prepares statements, it appears to have an algorithm which is O(n * m), where n is the number of columns in the table and m is the number of columns selected in the query. Since the certificate database has about 115 columns, when "SELECT * FROM ..." is used, it introduces significant overhead. Since sdb_FindObjects only uses the id column of the results of the query, the queries in sdb_FindObjectsInit can be changed to select only the id column rather than all of them. Reviewers: franziskus Reviewed By: franziskus Differential Revision: https://nss-review.dev.mozaws.net/D314 --HG-- extra : rebase_source : ed5bf33591d406b5dc062dc624a7d1bc3f018940 extra : amend_source : aa310794fb10d253f4cd24c98799969e5ff9e98c
- Loading branch information