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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:56:04+00:00 2026-05-15T07:56:04+00:00

I have a table with 4000 records(Which is much easier to handle through full

  • 0

I have a table with 4000 records(Which is much easier to handle through full text search). when the search query is executed for the first time it is much slower. It takes about 5 to 10 seconds. Then it gets faster. If the site remains inactive for 10 or 15 minutes, and when I try to execute the query again it gets slower.

I am using mysql+PHP. I guess this is caching issue. Our site is hosted in a third party server in which I have no access to cache.

Is there any workaround for my problem.

Thanks in advance!

Edit:

Hi,
Thanks for your reply. Here is my query.

SELECT PRODUCT_2_CATEGORY.PRODUCT_ID FROM PRODUCT_2_CATEGORY, PRODUCT, MERCHANT WHERE PRODUCT_2_CATEGORY.PRODUCT_ID = PRODUCT.ID AND PRODUCT.PRO_STATUS=’active’ AND PRODUCT.MERCHANT_ID = MERCHANT.ID AND MERCHANT.M_STATUS=’active’ AND ( CAT_ID=’1′ OR CAT_ID=’1004′ OR CAT_ID=’1005′ OR CAT_ID=’1006′ OR CAT_ID=’1007′ OR CAT_ID=’1008′ OR CAT_ID=’1002′ OR CAT_ID=’1003′ OR CAT_ID=’45’ OR CAT_ID=’46’ OR CAT_ID=’74’ OR CAT_ID=’75’ OR CAT_ID=’76’ OR CAT_ID=’49’ OR CAT_ID=’50’ OR CAT_ID=’77’ OR CAT_ID=’78’ OR CAT_ID=’79’ OR CAT_ID=’80’ OR CAT_ID=’81’ OR CAT_ID=’82’ OR CAT_ID=’83’ OR CAT_ID=’84’ OR CAT_ID=’47’ OR CAT_ID=’89’ OR CAT_ID=’51’ OR CAT_ID=’52’ OR CAT_ID=’88’ OR CAT_ID=’87’ OR CAT_ID=’86’ OR CAT_ID=’85’ OR CAT_ID=’48’ OR CAT_ID=’53’ OR CAT_ID=’54’ OR CAT_ID=’90’ OR CAT_ID=’200′ OR CAT_ID=’91’ OR CAT_ID=’92’ OR CAT_ID=’93’ OR CAT_ID=’94’ OR CAT_ID=’11’ OR CAT_ID=’95’ OR CAT_ID=’98’ OR CAT_ID=’99’ OR CAT_ID=’100′ OR CAT_ID=’101′ OR CAT_ID=’96’ OR CAT_ID=’102′ OR CAT_ID=’103′ OR CAT_ID=’104′ OR CAT_ID=’105′ OR CAT_ID=’106′ OR CAT_ID=’97’ OR CAT_ID=’107′ OR CAT_ID=’108′ OR CAT_ID=’109′ OR CAT_ID=’110′ OR CAT_ID=’114′ OR CAT_ID=’119′ OR CAT_ID=’120′ OR CAT_ID=’121′ OR CAT_ID=’115′ OR CAT_ID=’122′ OR CAT_ID=’123′ OR CAT_ID=’124′ OR CAT_ID=’125′ OR CAT_ID=’116′ OR CAT_ID=’127′ OR CAT_ID=’128′ OR CAT_ID=’129′ OR CAT_ID=’117′ OR CAT_ID=’130′ OR CAT_ID=’131′ OR CAT_ID=’118′ OR CAT_ID=’111′ OR CAT_ID=’132′ OR CAT_ID=’136′ OR CAT_ID=’137′ OR CAT_ID=’138′ OR CAT_ID=’139′ OR CAT_ID=’140′ OR CAT_ID=’133′ OR CAT_ID=’141′ OR CAT_ID=’142′ OR CAT_ID=’143′ OR CAT_ID=’144′ OR CAT_ID=’145′ OR CAT_ID=’146′ OR CAT_ID=’134′ OR CAT_ID=’147′ OR CAT_ID=’148′ OR CAT_ID=’149′ OR CAT_ID=’150′ OR CAT_ID=’151′ OR CAT_ID=’135′ OR CAT_ID=’152′ OR CAT_ID=’153′ OR CAT_ID=’154′ OR CAT_ID=’155′ OR CAT_ID=’156′ OR CAT_ID=’64’ OR CAT_ID=’158′ OR CAT_ID=’70’ OR CAT_ID=’164′ OR CAT_ID=’71’ OR CAT_ID=’165′ OR CAT_ID=’159′ OR CAT_ID=’166′ OR CAT_ID=’167′ OR CAT_ID=’168′ OR CAT_ID=’169′ OR CAT_ID=’160′ OR CAT_ID=’73’ OR CAT_ID=’170′ OR CAT_ID=’172′ OR CAT_ID=’173′ OR CAT_ID=’174′ OR CAT_ID=’161′ OR CAT_ID=’175′ OR CAT_ID=’176′ OR CAT_ID=’177′ OR CAT_ID=’178′ OR CAT_ID=’162′ OR CAT_ID=’179′ OR CAT_ID=’180′ OR CAT_ID=’181′ OR CAT_ID=’182′ OR CAT_ID=’183′ OR CAT_ID=’163′ OR CAT_ID=’184′ OR CAT_ID=’192′ OR CAT_ID=’191′ OR CAT_ID=’190′ OR CAT_ID=’189′ OR CAT_ID=’188′ OR CAT_ID=’187′ OR CAT_ID=’186′ OR CAT_ID=’185′ OR CAT_ID=’193′ OR CAT_ID=’112′ OR CAT_ID=’113′ OR CAT_ID=’65’ OR CAT_ID=’66’ OR CAT_ID=’67’ OR CAT_ID=’68’ OR CAT_ID=’69’) AND MATCH(PRODUCT.TITLE) AGAINST(‘shirt’ IN BOOLEAN MODE) ORDER BY PRODUCT.TITLE ASC LIMIT 0, 12

Our site is hosted on a third part web server(Plesk control panel). So, I am not sure whether other softwares can be installed.

Our site is 2010.shoppingstrip.com.au . This query will be executed when you search for some thing.

Thanks

  • 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-15T07:56:05+00:00Added an answer on May 15, 2026 at 7:56 am

    Indexing your table can make a huge difference. On a recent job with 1.5 million records in a MySql database, a basic query with a join was taking upwards of 35 minutes. After indexing the table (which took about 3-4 minutes) the query executed in 4 seconds.

    Queries should also be examined for any possible improvements. For example, exotic joins can dramatically lengthen queries. Also, running excessive foreach loops to grab a record at a time can cause excessive lag. Depending on your circumstance, you may be able to hone the query to search for only specific, essential elements to eek out better performance.

    To test your query, throw a copy of WAMP server on your local machine. Import the script and the database, and run a few tests. This could isolate whether your query is inefficient or if the problem lies with the server.

    Consider the search methods you use too. For example, finding a value in mysql could be accomplished with operators such as “LIKE”, “=”, “REGEXP”, etc. Experiment to improve performance and decrease load times.

    Finally, if all else fails, you could resort to a caching solution or more robust database hosting. 4,000 records is not very large in the grand scheme of things, and you shouldn’t be experiencing such slow load times. I’ve had good luck with caching via Zend Framework’s built in caching system.

    If you’ve still gotten nowhere, post a sample of your query and we can go to town on it!

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

Sidebar

Related Questions

we have a database table which has around 200,000 records. which includes 3 ntext
I have a table in MSSQL, of which the two columns look like the
I have a set of about 4000 records. I display 15 at a time
I have a query which is crossing two tables select count(*) from ingenium.empevt, ingenium.evt
I have a SQL Server 2008 R2 table with nvarchar(4000) field. Data that stores
I have a table Users with columns ID nvarchar(4000) GroupRank int Definition nvarchar(4000) ID
I have a field in a table that is varchar2, 4000 bytes. There are
I have created a procedure create procedure testProcedure_One as DECLARE @Query nvarchar(4000) begin SET
I have query to find Records in to single records from two rows with
In a database consider that I have a table with 4000 rows. I am

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.