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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:30:29+00:00 2026-05-26T15:30:29+00:00

Our site’s autocomplete is getting painfully slow, so we’re going to implement a caching

  • 0

Our site’s autocomplete is getting painfully slow, so we’re going to implement a caching solution.

I’ve been reading up on memcached and redis. They are both fast enough (doesn’t matter here if one is 10 ms faster). The main differences I’m concerned with is that redis has “persitence”. This sounds good but I’m not really sure how it applies to auto-complete or would be useful? As far as I can tell without persistence that just means we’d have to rebuild the cache on server restart. I don’t see that being too much of an issue (am I being naive here? lol)

We already have memcached installed, so all things being equal we’d probably just go with that, unless there’s a compelling reason that redis would be the superior tool for doing search auto-complete?

Our dataset is about 100K items (could grow by a factor of 2 or 3).

Thx,
Peter

  • 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-26T15:30:30+00:00Added an answer on May 26, 2026 at 3:30 pm

    How are you doing your auto-compelete? The preferred solution is to have a text-search service such a Solr that can quickly return suggestions. This is the common way and it is very fast. You will never need a caching layer.

    That said, let’s assume you can’t deploy solr right now. Redis is usueful if you can’t afford to lose data. Redis persists data to disk so even after a shutdown data is there. To me it sounds like if the cache is a miss then it will just be slow for the first person. Memcache is the right layer here because if the data gets lost you can afford to populate the cache again.

    Here is a link how one could do auto-suggest in Solr: What's the best way to implement AutoComplete in the server?

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

Sidebar

Related Questions

Recently our site has been deluged with the resurgence of the Asprox botnet SQL
Our site's favicon.ico file hasn't changed in years - and isn't going to change
Our company develops big corporate solution for business (web-site). After approving to support Apple
Our site has multiple wizards where various data is collected over several pages, and
Our site is running ASP.NET 1.1, and I need to have ASP.NET 2.0 running
On our site, we get a large amount of photos uploaded from various sources.
For our site, Im using a lot of jQuery - right now Im looking
Throughout our site there's a common model, let's say Video, that has a number
We're considering switching our site from Prototype to jQuery. Being all-too-familiar with Prototype, I'm
I'm switching over our site to use Asynchronous Google Analytics, and I'm curious about

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.