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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:20:18+00:00 2026-06-09T11:20:18+00:00

For a customer I am currently investigating improvements to their database structure. My customer

  • 0

For a customer I am currently investigating improvements to their database structure.

My customer offers holiday rentals on their website.
On their front page they have a search function wich sends a query to a MySQL database architecture (Master-Master setup) that answers that query with all the holiday rentals that the customer is interested in.

Due to the growth of the company and the increasing load on their servers the search query’s are currently running up to 10+ seconds. Mainly because the query’s end with an ORDER BY which causes MySQL to create a temp table and sort all the data, an average search query can return up to 20k holiday homes.
Ofcourse one of the things we are doing is investigating the query’s, rewriting them and putting indexes where needed. Unfortunately we are unable to get allot more performance under these circumstances.
That’s why we are looking into implementing Memcached on top of MySQL to cache these large datasets in memory for faster retrieval. Unfortunately the datasets that the query’s return are quite large wich makes Memcached not that effective at this point. The array that MySQL returns are currently about 15k rows with about 60 values per row.
The reason Memcached is interesting is because we want to drastically improve the search function, and lowering the load on the MySQL platform. This would make it more scalable.

I am wondering if there is anyone that is familair with (longterm) caching MySQL data in Memcached and making it more effective for large datasets?

Thanks a bunch!

  • 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-09T11:20:19+00:00Added an answer on June 9, 2026 at 11:20 am

    Memcache is for storing key-value pairs, not for large sets of data. Will it work? Yes. Of course it will. But with how much data you guys are going to throw at it, you’re going to run out of memory very soon and end up hitting the database anyway with how often your search results may change. And remember that just because it’s memcache doesn’t mean it doesn’t have to go through web sockets to a (most likely) different machine. Your problem seems to be that you’re using MySQL for something it was never designed well for, which is its use as a search engine. No matter how many things you optimize, all you’re doing is raising the ceiling an inch at a time.

    I could take this post in a “you need to optimize MySQL parameters so that it doesn’t have to create those temp tables” direction, but I’m going to assume you’ve already looked into that and keep going.

    My recommendation is that you implement something on top of MySQL to handle the searching. In my own quest for fast searching, these are the solutions I gave the most weight to:

    Sphinx: http://sphinxsearch.com
    Solr: http://lucene.apache.org/solr
    Elasticsearch: http://www.elasticsearch.org

    You’ll find plenty of resources here on StackOverflow for which of those is better and faster and what not. For our purposes, we picked Elasticsearch for one of our projects and Solr for another.

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

Sidebar

Related Questions

I have a customer who is currently using Excel to do their staff planning.
I'm currently creating a bunch for RewriteRules for a customer migrating their website to
We're currently developing a website (TYPO3 under Apache) for a customer that is supported
I have a customer table where I'm currently storing: Last Name First Name Middle
I am currently creating a customer application for a local company. I have a
Our organization currently has an external customer website that allows customers to download files
We currently have a system that handles translation jobs. customer creates an order the
I'm currently in the process of designing the database tables for a customer &
I am currently modifying the Magento front end printable order page (the page a
I have a national customer who are currently recruiting dealers by selling each dealer

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.