Closed Bug 1464443 Opened 8 years ago Closed 8 years ago

Add a LIMIT to ORDER BY queries, where possible.

Categories

(Toolkit :: Places, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

Sqlite 3.24.00 will add an optimization where ORDER BY M LIMIT N queries can be better optimized than without a LIMIT. This changes one of the assumptions we always made about Sqlite queries not being more expensive if they don't have a LIMIT. I plan to do a general check of all the Places queries to see if there are points where we could benefit from the new Sqlite version.
Attachment #8980651 - Flags: review?(standard8) → review+
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s 3f921b88dec6e0fae5bd43cdde51415481df6ef8 -d 15c30a777a2d: rebasing 466059:3f921b88dec6 "Bug 1464443 - Add a LIMIT to ORDER BY queries in Places. r=standard8" (tip) merging toolkit/components/places/SQLFunctions.cpp warning: conflicts while merging toolkit/components/places/SQLFunctions.cpp! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/99c88a248a13 Add a LIMIT to ORDER BY queries in Places. r=standard8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Depends on: SQLite3.24.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: