Closed Bug 842457 Opened 11 years ago Closed 11 years ago

Limit columns in queries used for getCount

Categories

(Firefox for Android Graveyard :: Data Providers, defect)

15 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 22

People

(Reporter: mfinkle, Unassigned)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
We use a getCount(...) method in BrowserProvider to let Telemetry get counts of DB tables. We pass null into the query so all columns are returned which is slower than limiting the number of columns.

This patch only returns the _ID column.
Attachment #715339 - Flags: review?(bnicholson)
Attachment #715339 - Flags: review?(bnicholson) → review+
https://hg.mozilla.org/mozilla-central/rev/04c9844e37b8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: