Closed Bug 1736251 Opened 3 years ago Closed 1 year ago

Avoid calling PlacesUtils.tagging.getTagsForURI when creating PlacesBookmarkTags

Categories

(Toolkit :: Places, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: daisuke, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file)

This is a follow-up bug of bug 1678607.

In bug 1678607, we introduced PlacesBookmarkTags event.
The event needs its tags, we are using PlacesUtils.tagging.getTagsForURI() to get the tags.
But as it accesses DB synchronously, we concern about the performance.
In this bug, we want to find a way to get tags without accessing DB.

It should be possible to fetch tags when we initially fetch info for the bookmark being modified, and then just update that list with the tags being added or removed.

I will call this a P2 because the I/O performance impact is interesting and should be avoided.

Blocks: OMTPlaces
Severity: -- → S3
Keywords: perf
Priority: -- → P2
Assignee: nobody → mak
Status: NEW → ASSIGNED
Attachment #9303206 - Attachment description: Bug 1736251 - Avoid calling PlacesUtils.tagging.getTagsForURI in Bookmarks.jsm. r=daisuke → Bug 1736251 - Avoid calling PlacesUtils.tagging.getTagsForURI in Bookmarks.jsm. r=daisuke!
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/99268af99b7c
Avoid calling PlacesUtils.tagging.getTagsForURI in Bookmarks.jsm. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: