Closed Bug 583847 Opened 14 years ago Closed 14 years ago

Weave should be using createAsyncStatement instead of createStatement

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sdwilsh, Assigned: philikon)

References

Details

(Keywords: perf)

Attachments

(1 file)

Weave should be using createAsyncStatement instead of createStatement whenever possible (like whenever you only call executeAsync with the statement). This will not acquire any SQLite or storage locks on the calling thread (in this case, the main thread). Less locking means less chances of hanging.
Keywords: perf
According to sdwilsh createAsyncStatement is only available in Gecko 2.0, though, we'll have to keep the old way on Firefox 3.5/3.6.
Component: General → Sync
QA Contact: general → sync
Attached patch v1Splinter Review
Use createAsyncStatement everywhere. Converted frecency query in BookmarksStore to async as well.
Assignee: nobody → philipp
Attachment #463928 - Flags: review?(mconnor)
Attachment #463928 - Flags: review?(mconnor) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 585753
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: