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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:07:20+00:00 2026-05-23T13:07:20+00:00

Im making a (small) site in php & mysql. The mysql database consists of

  • 0

Im making a (small) site in php & mysql. The mysql database consists of a single table with possibly tens of thousands of rows (in the future).

I only need to get results from one column which has a character limit of 200.

Considering that I don’t want any stopwords or “common” word features; and the column contains filenames (some with special characters), what type of search would you recommend?

EDIT: Just some more clarification on filenames:
I don’t want to do an exact match; say I have a name like this: [abc]_random_file.txt; searching for “abc random” OR “[abc] random” OR “abc txt” should all match. Hope that makes sense.

I’ve considered:

1—-SQL like statement
2—-SQL regexps (as shown on this website: http://www.iamcal.com/publish/articles/php/search/ )
3—-Mysql Full-Text Search(MyISAM)
4—-Third party search engines(really don’t want to do this)

With #2 I can probably get the results I want, however I don’t think it would work well with my table if it gets big?

Would appreciate any help; im a real beginner to all this and I’ve been googling all day 🙁

  • 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-23T13:07:21+00:00Added an answer on May 23, 2026 at 1:07 pm

    What do you need to search? Optimizations can often be found when you take in account the limitations of your searches. For instance, if you only need to find all the rows that start with a specific text, you can add a simple index and use LIKE, which will give instant results.

    In general, if a simple equality or LIKE will do, those will probably perform best. A regexp will anyway do a full scan. However even if there were a 100,000 rows, it would still take up mere 20MB in RAM, so a full scan through all that will not be very slow (unless you’re on an ancient server).

    I’d say – try the simple approach first and see what happens. If the performance reaches unacceptable levels, you should be easily able to change your approach. After all – you did state that the website was small.

    Added: Just read your update. Sounds like a job for MySQL’s fulltext index. Try it to see if it works for you.

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

Sidebar

Related Questions

im making a small site And Instead of having a header.php and a footer.php
So I am making a small site using cakephp, and my ACL is set
I am to create a small single sign-on solution for a small site I
I'm making a small site where if you click on the background, you get
I'm making some site which must be fully unicode. Database etc are working, i
Im making a small python script to upload files on the net. The script
I'm making a small web application in Seaside. I have a login component, and
I'm making a small quiz-application in Flash (and ActionScript 3). Decided to use the
I was thinking of making a small tool. It is not important what the
I have a site where I randomize the background image using a php rotator

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.