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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:40:21+00:00 2026-06-13T17:40:21+00:00

I use MySQL + Sphinx to store many millions rows of data. We have

  • 0

I use MySQL + Sphinx to store many millions rows of data. We have website to view all information from our database.

For example, movie titles (100,000,000 rows). I need to view ALL of them on our website, 100 titles per page. Also, i need view them sorted by actors popularity.

For the first 10 pages all works great. But after that i reached max_matches limit. Increasing this limit will force sphinx to use more CPU/RAM.

Also, i can’t even set max_matches to 20,000,000.

WARNING: max_matches=20000000 out of bounds; using default 1000

I can use MySQL to perform queries like this:

SELECT * FROM titles WHERE tid >= $start AND tid <= $end

to use tid index. But i can’t sort it by tid. I need to sort my titles by info from other tables.

What is the best way to get access to many millions of rows, sorted and do it quick. Please help.

UPDATE: from sphinx source: /src/searchd.cpp

if ( iMax<0 || iMax>10000000 )
{
    sphWarning ( "max_matches=%d out of bounds; using default 1000", iMax );
} else
{
    g_iMaxMatches = iMax;
}

Is 10000000 is a limit ? How can i get offset more than that ?

  • 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-13T17:40:22+00:00Added an answer on June 13, 2026 at 5:40 pm

    If your sort order is based on an attribute (actors popularity) – rather than sphinxes computed weight – then can just use cursors instead.

    Because can filter by this attribute.

    http://sphinxsearch.com/forum/search.html?q=cursors&f=1

    I do have to wonder tho, if you REALLY need it. At 100 items per page, a max_matches of 1M, means 10,000 pages of results. Do your visitors really go though reading 10,000 pages of results?

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

Sidebar

Related Questions

I use MySQL to store data and my web pages are all encoded as
I have just updated our Sphinx server from 1.10-beta to 2.0.6-release, and now I
We have a problem while rebuilding the Sphinx index for one of our MySQL
I'd like to use MySQL from SilkJS under OSX Lion, but can't find the
I am trying to use MySQL with Sphinx to provide fulltext searching on usernames
I'm trying to investigate sphinx rt indexes to use in future project and have
I use mySQL and I have a members table with a BLOB 'contacts' field
We use MySQL in production, and Derby for unit tests. Our pom.xml copies Derby
I have a php classifieds website (mostly) and I am currently using MYSQL as
Should I use Sphinx or MySQL full-text for searching through no more than 1000

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.