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 190979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:18:07+00:00 2026-05-11T16:18:07+00:00

Background: I have a table with 5 million address entries which I’d like to

  • 0

Background: I have a table with 5 million address entries which I’d like to search for different fields (customer name, contact name, zip, city, phone, …), up to 8 fields. The data is pretty stable, maximum 50 changes a day, so almost only read access.

The user isn’t supposed to tell me in advance what he’s searching for, and I also want support of combined search (AND-concatenation of search terms). For example “lincoln+lond” should search for all records containing both search terms in any of the search fields, also those entries starting with any of the terms (like “London” in this example).

Problem: Now I need to choose an indexing strategy for this search table. (As a side note: I’m trying to achieve sub-second response time, worst response time should be 2 seconds.) What’s better in terms of perfomance:

  1. Do a combined index out of all queryable columns (would need 2 of them, as index limit of 900 bytes reached)
  2. Put single indexes on each of the queryable columns
  3. Make a fulltext index on the queryable columns and use fulltext query

I’m discarding point 1, as it doesn’t seem to have any advantage (index usage will be limited and there will be no “index seek”, because not all fields fit in one single index).

Question: Now, should I use the multiple single indexes variant or should I go with the fulltext index? Is there any other way to achieve the functionality mentioned above?

  • 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-11T16:18:08+00:00Added an answer on May 11, 2026 at 4:18 pm

    To answer my own question:

    I’ve chosen the “multiple single indexes” option. I ended having an index for each of the queried columns, each index containing only the column itself. The search works very good with mostly subsecond response times. Sometimes it takes up to 2-3 seconds, but I’m attributing it to my database server (several years old laptop with 3GB Ram and slow disk).

    I didn’t test the fulltext option as it was not anymore necessary (and I don’t have the time to do it.)

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

Sidebar

Related Questions

I have a table with approx 5 million rows which has a fk constraint
We have an Oracle database, and the customer account table has about a million
Here's some background info. I have three MySQL tables (all InnoDB). The first table
I have a table that has rows with different classes depending on what color
Background: We have large flat files span around 60GB and are inserting into database.
I'm not much of a database guru so I would like some advice. Background
I have this table: create table demo ( key number(10) not null, type varchar2(3)
I have a pretty common layout issue that I have traditionally used a table
I have a table and I create rows on the fly with: $('#AjaxResultTable >
I have several TableViews in my current application and I'd like to have a

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.