Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7554359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:19:05+00:00 2026-05-30T11:19:05+00:00

I wanted auto completion feature in ipad app. I have a sqlite database of

  • 0

I wanted auto completion feature in ipad app. I have a sqlite database of words. On typing letters in a search box i load the keywords in a UItableview. I have used the following select query,

SELECT word from tbl_words where words like a%

When i had few hundred words, every thing worked fine. But when my database grown to have thousands of words, the response is slow. So i made auto completion active only after typing 3 letters. Which gave few number of words yet it is slow.

I looked into sqlite optimization techniques in this SQLite_optimization_FAQ. It suggests to avoid like % to make use of indexing.

I know that i can create index for column using

CREATE INDEX tbl_words ON mytest(words);

Is there anything else i can do to improve performance?. Any help would be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:19:07+00:00Added an answer on May 30, 2026 at 11:19 am

    Instead of hitting the database everytime, load the all values into an array and search the array. This will improve the performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to add user search auto-complete (like Facebook's) to my Rails app on
As a test, I wanted to have an ASP.NET page rendered without the auto-generated
I have realised that mnesia doesnot support auto-increment feature as does MySQL or other
I'm creating a Facebook App and wanted to avoid firing off the Allow box,
Wanted to get some consensus around a UI feature I'm working on right now.
I have a UIScrollView and I wanted the frame height to adjust proportionally when
I am working on web application. I wanted to apply auto height to textarea
Gridview has auto-generated column.I wanted to select the perticular row,so added one button in
I wanted to create an article database for my users I was wondering how
Just wanted opinions on a design question. If you have a C++ class than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.