Closed
Bug 511260
Opened 15 years ago
Closed 15 years ago
Replace UNION ALL with UNION where a sync could change underlying data in the middle
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mak, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
due to bug 507790, during a UNION ALL underlying data in the queried tables can change, that means we can get any sort of random results (duplicates or missing results) from those queries.
Even if UNION is slightly slower, we have to replace UNION ALLs with UNIONs, to get consistent results.
Comment 1•15 years ago
|
||
Note that any query that is only run asynchronously will not run into this issue, and so it doesn't need to be changed.
Reporter | ||
Comment 2•15 years ago
|
||
sure, i won't change all of them
Reporter | ||
Comment 3•15 years ago
|
||
using UNION instead of UNION ALL in queries that have a COALESCE between select fields causes WARNINGs for sorting operations, i suppose due to the fact UNION tries to discard duplicates, and that process will be quite slower then what we do actually. That happens in lots of queries.
This patch is what we should do to replace UNION ALLs, Shawn what do you think?
Imho this will kill perf in a bad way, one of the queries is mDBGetChildren, that is used (among other things) to populate all bookmarks folders (included the toolbar).
Reporter | ||
Comment 4•15 years ago
|
||
Bug 511965 should reduce cases where this happens.
Reporter | ||
Comment 5•15 years ago
|
||
if bug 511965 is ensuring functionality i'm goingto wontfix this. the perf drop would just be too big.
Reporter | ||
Comment 6•15 years ago
|
||
unfortunatly WONTFIX, performances regression would be quite bad.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•