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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:30:45+00:00 2026-06-15T09:30:45+00:00

I have a MySQL database with 2 million records. I’m already using sphinx to

  • 0

I have a MySQL database with 2 million records. I’m already using sphinx to index the data and then search it fast.

I have two indexes. One big index which is rotated each day at 3AM, and one smaller which holds incremental changes only. Its rotated each 30 mins and indexes only the new rows in the database (those that are inserted after 3AM).

Everything is good. Search is working. But I’m looking for some improvements. I don’t need to reindex the big database each day, because once the information is inserted in the database, it doesn’t change (i have only inserts, no updates). So rebuilding the large index is absolutely useless.

Is it possible to split this index on yearly or even monthly indexes? Is this going to speed or will slow down the search queries? Any examples how to organize the index and data sources? Would it be better if I switch to real time indexes?

  • 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-06-15T09:30:47+00:00Added an answer on June 15, 2026 at 9:30 am

    You could just use the Merge feature

    http://sphinxsearch.com/docs/current.html#index-merging

    Once a day merge your ‘delta’ back into the ‘main’. Right after merging want to update the counter table, as the data in the main has changed, so the value has changed.

    (In general the more indexes you have the more searching is going to be affected. Eventually searching lots of small indexes will take more work than it saves. – The exception is if you can just search parts of the data. For example if you have queries taht just search records in the last year, can tweak it so only search the latest index. That is more efficient than searching all the records only to discard many.)

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

Sidebar

Related Questions

I have about 28 million records to import into a mySql database. The record
I am fetching records from MySQL database using Java (JDBC). I have tables -
I have a mysql database with around 1.5 million company records(name, country and other
I am using mysql database. I have two tables bugs and profiles. Bugs table
I have mysql table Stop_Times with 20 Million records. I am using MyISAM storage
I have more than 100 million unique strings (VARCHAR(100) UNIQUE in MySQL database). Now
I have a rather complex database-query which gives me 30 million records - roughly
We are using MySQL to get data from database, match the data and send
I have one table with almost 2 million records on my SQLite database, some
I have some tables in a MySQL database to represent records from a sensor.

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.