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

  • Home
  • SEARCH
  • 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 898107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:59:26+00:00 2026-05-15T14:59:26+00:00

At the moment I want to have three columns in my database for Notes:

  • 0

At the moment I want to have three columns in my database for Notes:

ID | Title | Content

The table could have a few hundred entries.
I want to be able to search for parts of the content. When Content is “this is a test sentence” and the user searches for “test” or even “te” then the row should be displayed.
Is it okay to store this information in an SQLlite3 database or is there a way to have better performance?

  • 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-15T14:59:27+00:00Added an answer on May 15, 2026 at 2:59 pm
    1. Databases are fine for this stuff, just make sure you use indexes and, if you can avoid usage of LIKE open on both edges

      wrong, it does not use indexes

      where data like ‘%search%’

      good, it uses indexes

      where data like ‘search%’

    2. If you will have records counting over million, or long texts. You could break time in categories, and store them in different tables. This way you will tell the user to search in that category only.

    3. Make sure that you implement the right on text change event + key timer, as you can end up to issue db requests for a search too soon, and the user has not finished typing.

    In mobile/desktop environment a 300ms wait for next keypress is advised.

    To explain what I mean: suppose you want to searc for “blueray”

    • user types in “b” on text change fires, search is requested with like ‘b%’
    • user types in “l” on text change fires, search is requested with like ‘bl%’
    • user types in “u” on text change fires, search is requested with like ‘blu%’

    you will end up doing inefficient queries, that take long-long time

    you should do:

    • user types in “b”, you should wait for 300ms for next key
    • user types in “l”, you should wait for 300ms for next key
    • user types in “u”, text reached length 3, allow the search
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have two models: User and Godfather. The godfather table has three columns:
I have a table countries with three columns country_name, country_code, country_flag . The table
at the moment i have a column user_id in the threads table cause one
I have decided to create a new table in my database that will be
So basically I have data being pulled from a database for which I want
At moment I want to implement picture upload without using any plug-ins. My upload
I want to calculate the n-th moment of a distribution. I am trying to
at the moment I'm really interested in expression templates and want to code a
Im having a moment, what i want to do is really simple and i
At the moment I have a jQuery do a POST to a Controller which

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.