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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:24:34+00:00 2026-05-14T02:24:34+00:00

I have a MySQL/Rails app that needs search. Here’s some info about the data:

  • 0

I have a MySQL/Rails app that needs search. Here’s some info about the data:

  • Users search within their own data only, so searches are narrowed down by user_id to begin with.

  • Each user will have up to about five thousand records (they accumulate over time).

  • I wrote out a typical user’s records to a text file. The file size is 2.9 MB.

  • Search has to cover two columns: title and body. title is a varchar(255) column. body is column type text.

  • This will be lightly used. If I average a few searches per second that would be surprising.

  • It’s running an a 500 MB CentOS 5 VPS machine.

  • I don’t want relevance ranking or any kind of fuzziness. Searches should be for exact strings and reliably return all records containing the string. Simple date order — newest to oldest.

  • I’m using the InnoDB table type.

I’m looking at plain SQL search (through the searchlogic gem) or full text search using Sphinx and the Thinking Sphinx gem.

Sphinx is very fast and Thinking Sphinx is cool, but it adds complexity, a daemon to maintain, cron jobs to maintain the index.

Can I get away with plain SQL search for a small scale app?

  • 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-14T02:24:35+00:00Added an answer on May 14, 2026 at 2:24 am

    I would start out simple — chances are that plain SQL will work well, and you can always switch to full text search later if the search function proves to be a bottleneck.

    I’m developing and maintaining an application with a search function with properties similar to yours, and plain SQL search has worked very well for me so far. I had similar performance concerns when I first implemented the search function a year or two ago, but I haven’t seen any performance problems whatsoever yet.

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

Sidebar

Related Questions

I have a staging Rails site up that's running on MySQL 5.0.32-Debian. On this
I am developing an app that needs to send text messages, so I have
I have a web-app that was done in Rails 1.2.3 and I have just
I have a private Rails app that I'm trying to install locally. It's currently
In a Rails app, I have foreign key constraints in MySQL which I set
I am using ruby on rails with a MySQL backend. I have a table
I have a MySQL query that returns a result with a single column of
I have a MySQL database of keywords that are presently mixed-case. However, I want
I have an app that works perfectly on my local machine and am deploying
In a Rails app I have a Company ActiveRecord Object and one of its

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.