Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-12-2009, 12:57 PM   #1 (permalink)
georgiecasey
New Member
 
Join Date: May 2009
Posts: 1
Default speed up like wildcard % search in sqlite

Hey,

I've a phonebook app with 180k records of names, addresses and numbers. I search my sqlite database every time the user changes text in the searchbar with this query [select id from phonebook where name like 'car%' and state='ny' limit 10]

for states with loads of entries, the search can be very slow as sqlite has to go through more records to find a match. also, if you search for 'a%' the search is quick but 'z%' it's slow as sqlite has to travel to the end of the records to find 10 matches.

i was wondering does anyone have tips to speed up the search.
georgiecasey is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,725
Threads: 89,183
Posts: 380,507
Top Poster: BrianSlick (7,125)
Welcome to our newest member, boltdozer
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.