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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:13:42+00:00 2026-05-15T14:13:42+00:00

I am planning to implement database search through a website – I know there

  • 0

I am planning to implement database search through a website – I know there is full-text search offered by mysql, but turns out that it is not supported for innodb engine (which I need for transaction support).
Other options are using sphinx or similar indexing applications. However they require some re factoring of the database structure and may take more time to implement than I have.

So what I decided on was to take each table and concatenate all its relevant columns into a newly added QUERY column. This query column should also recruit from column of other relevant tables.

This accomplished, I will use the ‘like’ clause on query column of the table to be searched to search to return results of specific domains (group of related tables).

Since my database is not expected to be too huge (< 1mn rows in the biggest table), I am expecting reasonable query times.

Does any one agree with this method or have a better idea?

  • 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-15T14:13:43+00:00Added an answer on May 15, 2026 at 2:13 pm

    You will not be happy with the solution of using LIKE with wildcards. It performs hundreds or thousands of times slower than using a fulltext search technology.

    See my presentation Practical Full-Text Search in MySQL.

    Instead of copying the values into a QUERY column, I would recommend copying the values into a MyISAM table where you have a FULLTEXT index defined. You could use triggers to do this.

    You don’t need to concatenate the values together, you just need the primary key column and each of your searchable text columns.

    CREATE TABLE OriginalTable (
      original_id SERIAL PRIMARY KEY,
      author_id INT,
      author_date DATETIME,
      summary TEXT,
      body TEXT
    ) ENGINE=InnoDB;
    
    CREATE TABLE SearchTable (
      original_id BIGINT UNSIGNED PRIMARY KEY, -- not auto-increment
      -- author_id INT,
      -- author_date DATETIME,
      summary TEXT,
      body TEXT,
      FULLTEXT KEY (summary, body)
    ) ENGINE=MyISAM;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we have started research on Service Broker and planning to implement in application. But
I'm planning to implement a FUSE filesystem using low-level API and currently trying to
I'm planning to implement a process using a java app. The process has various
I'm planning to Implement CDN(Content Delivery Network) of Amazon which is known as CloudFront
I'm planning to implement my own set of constraints, and am having some difficulty
We are planning to implement ACL on our Linux platform. Only one particular group
I am planning to implement spam filter using Naive Bayesian classification model. Online I
Planning to create a new website for our product using ASP.NET MVC 4. Site
In my web application I am planning to include a Search field which will
we are planning to implement sql server 2005 cluster in next few months. i

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.