Closed Bug 1575757 Opened 6 years ago Closed 5 years ago

Don't use `WITH RECURSIVE` to build the local tree

Categories

(Firefox :: Sync, task, P2)

task

Tracking

()

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: lina, Assigned: lina)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Since we now fetch the entire tree (including tags and non-syncable items), this query can be rewritten to walk moz_bookmarks twice (once for item info, and once for structure), just like fetch_remote_tree, instead of using WITH RECURSIVE. This might be faster than the CTE, since we can use an index; we'll have to profile.

Blocks: 1561467

This commit replaces the localItems CTE with a single table scan
that fetches item and structure infos in one pass.

Depends on D43576

Attachment #9088360 - Attachment description: Bug 1575757 - Don't use `WITH RECURSIVE` to build the local tree. r?markh! → Bug 1575757 - Don't use `WITH RECURSIVE` to build the local tree. r?tcsc!
Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7438ce6ba80c Don't use `WITH RECURSIVE` to build the local tree. r=tcsc
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Regressions: 1582399
No longer regressions: 1582399
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: