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

Basic Information I have a rails app A that is connected to a mysql
I have a Rails app that uses MySQL, MongoDB, NodeJS (and SocketIO). Right now,
I have a rails app that uses MySQL for authentication and storing models. I
I have a rails app which has data in MySQL db. I am using
I have a rails app that uses the following, rails 3.1, ruby 1.9.2, mysql,
I want to use mysql with a rails app (I have never used mysql
In Rails 3.0.9 (Ruby 1.9.2, MySQL) I have a method that is supposed to
Currently I have a Rails 2.3 app that is a CMS serving over 100
I have a standard Rails app that uses a database, sqlite3 and the webrick
I have an iPhone app out that stores data on the device. I want

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.