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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:47:52+00:00 2026-06-11T15:47:52+00:00

with every new visit from a search engine, I save the keyword (e.g. php

  • 0

with every new visit from a search engine, I save the keyword (e.g. “php performance”) the visitor searched for at the search engine.

To count the number how often the keyword is used per day, I need to check whether somebody else already searched for the term that specific day.

After several months the table gets very big and the mysql check for the existence of the keyword that day takes longer and longer. So I switched to an extra table where I only save the keyword and give each keyword a specific ID to only have the checking process once and not each new day. This specific ID which I related to the keyword I insert in the table with diversification for each day.

This already works better but this table also gets bigger and bigger…

Does somebody has a good solution for this to higher performance?

Best,

Freddy

  • 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-06-11T15:47:53+00:00Added an answer on June 11, 2026 at 3:47 pm

    When it comes to performance there are some ‘tricks’ one can do to improve:

    1. Build a caching mechanism. That is what you already did by making a second table. You could take that further and keep the cached table in memory or memcached.
    2. Opimize your queries, and make sure there are indexes on the search field(s). Not shure if you did that.
    3. Try to (de)normalize your database. Sometimes a different database structure is not optimal from a design point, but optimized for speed. Not sure if you did that.
    4. Look at different solutions for searching, perhaps have a look at Lucene.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I make ComboBox from AjaxToolkit make call to server every time new letter
I have created page that every new user is redirected to upon visit, it
Every new web service you create using visual studio comes with a predefined namespace
Every new generation of CPU introduces some sets of new instructions, i.e. MMX, 3DNOW,
I have a single xml file and every new thread of the program (BHO)
I have an application and every new created activity will start an async task
In my app, I need every new record to be added to the index
There is no default file encoding option in my qt creator. Therefore, every new
Every time a new developer joins the team or the computer a developer is
I am trying to refresh a UITableView with new cells every 30 seconds. My

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.