Closed Bug 486201 Opened 17 years ago Closed 12 years ago

Evaluate possible optimization for table 'cal_recurrence' using an index

Categories

(Calendar :: Provider: Local Storage, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: dbo, Unassigned)

Details

(Keywords: perf)

Using a debug build I get the following warning: WARNING: 1 sort operation has occurred for the SQL statement 'SELECT * FROM cal_recurrence WHERE item_id = :item_id AND cal_id = 0 ORDER BY recur_index'. This may indicate an opportunity to improve performance through the careful use of indexes.: file /Users/dbo/moz_cc/src/mozilla/storage/src/mozStoragePrivateHelpers.cpp, line 105
When introducing an index for this query we have to compare using an index for item_id/cal_id and recur_index (according to http://www.sqlite.org/optoverview.html). After bug 529326 has landed, we use an index for item_id/cal_id.
Keywords: perf
OS: Mac OS X → All
Hardware: x86 → All
Summary: Eval possible optimization → Evaluate possible optimization for table 'cal_recurrence' using an index
Assignee: nobody → mschroeder
Status: NEW → ASSIGNED
Indices have been added in bug 529326, and the missing index on "recur_index" is no longer needed as bug 785733 removed "ORDER BY recur_index" from the query. Maybe we should file a bug removing column "recur_index" from table "cal_recurrence" as it seems to be no longer used.
Assignee: mschroeder → nobody
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
(In reply to Martin Schröder [:mschroeder] from comment #2) > Maybe we should file a bug removing column "recur_index" from table > "cal_recurrence" as it seems to be no longer used. Not needed as bug 785733 took care of that in its migration/upgrade step.
You need to log in before you can comment on or make changes to this bug.