Closed
Bug 521048
Opened 15 years ago
Closed 7 years ago
create a IS_PLACE_URI sqlite function
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mak, Unassigned)
Details
> Sdwilsh (https://bugzilla.mozilla.org/show_bug.cgi?id=516940#c10):
> We do this in so many places, I feel like we should make a SQL function to
> detect place URI's in SQL:
> AND NOT PLACE_URI(h.url). Can you file a follow-up please?
the problem is that we can optimize the TRUE case (using h.uri > "place:" AND
h.uri < "place;") but we can't optimize the FALSE case (it would be an OR, so
SUBSTR is faster)... since this follows two paths based on result it's hard to
generalize it into a sqlite function, unless we do something like
CHECK_PLACE_URI(true/false) that uses a different path based on input. btw i'll
file the followup.
Reporter | ||
Comment 1•7 years ago
|
||
the current methods are fine.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•