Limit columns in queries used for getCount

RESOLVED FIXED in Firefox 22

Status

()

Firefox for Android
Data Providers
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mfinkle, Unassigned)

Tracking

15 Branch
Firefox 22
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 715339 [details] [diff] [review]
patch

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
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
You need to log in before you can comment on or make changes to this bug.