From 6a133be9d386b83e586b5ad1dd5de1fd461888a1 Mon Sep 17 00:00:00 2001 From: "mvl%exedo.nl" Date: Thu, 2 Nov 2006 20:24:30 +0000 Subject: [PATCH] bug 355577: add index to properties table, to speed up item construction. r=jminta --- calendar/providers/storage/calStorageCalendar.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/providers/storage/calStorageCalendar.js b/calendar/providers/storage/calStorageCalendar.js index 40baa826a7c1..404aad4b1f83 100644 --- a/calendar/providers/storage/calStorageCalendar.js +++ b/calendar/providers/storage/calStorageCalendar.js @@ -1056,6 +1056,12 @@ calStorageCalendar.prototype = { this.upgradeDB(version); } } + + // (Conditionally) add index + this.mDB.executeSimpleSQL( + "CREATE INDEX IF NOT EXISTS " + + "idx_cal_properies_item_id ON cal_properties(item_id);" + ); this.mSelectEvent = createStatement ( this.mDB,