Menu

#1 Use transactions for update/insert

open
nobody
None
5
2009-12-09
2009-12-09
Anonymous
No

use this.dbConn.beginTransaction() and this.dbConn.commitTransaction() in markAsRead/Unread functions to wrap many INSERT/UPDATE statements in loop. Or add statements to array and execute them with executeAsync().
My browser is much more responsive with this change.

https://developer.mozilla.org/en/mozIStorageConnection

Discussion


Log in to post a comment.

MongoDB Logo MongoDB