473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Slow Full-Text Search when table grows constantly

Hello,
I have a small issue with a web-search engine I'm working on. The main table is constantly growing (1 insert per second, currently 150 000 records) and it has full-text indexes on 2 fields that contain over 20 000 characters on each row.

The thing is, as I could observe, that when multiple different full-text searches are made in appropiate period of time, the query doesn't take so much to respond (though i couldn't quite say it's fast), but when no search is made, let's say, for over 2-3 hours, the same query takes up to 30-40 seconds to respond.

The query is simple:
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2. id
  3. day_processed,
  4. date_processed,
  5. site_id,
  6. MATCH (content1, content2) AGAINST ('some text here')
  7. FROM details
  8. WHERE (1 = 1)
  9. AND MATCH (content1, content2) AGAINST ('some text here' IN BOOLEAN MODE)
The table is defined like this:
Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE `details` (
  2. `id` int(11) NOT NULL auto_increment,
  3. `day_processed` date default NULL,
  4. `date_processed` datetime NOT NULL default '2008-01-01 00:00:00',
  5. `url` varchar(500) NOT NULL default 'http://',
  6. `content1` varchar(1000) character set utf8 default NULL,
  7. `content2` varchar(20000) character set utf8 default NULL,
  8. `site_id` int(3) unsigned NOT NULL default '0',
  9. `price` varchar(15) default NULL,
  10. `phone` varchar(50) default NULL,
  11. `email` varchar(40) default NULL,
  12. PRIMARY KEY (`id`),
  13. UNIQUE KEY `url` USING HASH (`url`(200)),
  14. KEY `date_processed` (`date_processed`),
  15. KEY `id_site` (`id_site`),
  16. KEY `day_processed` (`day_processed`),
  17. FULLTEXT KEY `content` (`content1`,`content2`)
  18. ) ENGINE=MyISAM AUTO_INCREMENT=156243 DEFAULT CHARSET=ascii ROW_FORMAT=DYNAMIC
The MySQL Server is configured as Dedicated Server Machine (with MySQL Instance Configurator), it has dual core processor and 2Gb of RAM.

I would appreciate any suggestion for ways to improve speed. Please let me know if you need any additional information.

Best regards
Mar 18 '08 #1
1 1955
ronverdonk
4,258 Expert 4TB
Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future.

MODERATOR
Mar 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Jason | last post by:
Hey, I'm an experience programmer but new to Python. I'm doing a simple implementation of a field morphing techinique due to Beier and Neely (1992) and I have the simple case working in Python...
9
by: drife | last post by:
Hello, I need to calculate the eigenvectors and eigenvalues for a 3600 X 3600 covariance matrix. The LinearAlgebra package in Python is incredibly slow to perform the above calculations...
0
by: Dhammika | last post by:
Outlook Express6 on Windows XP professional has suddenly became very slow to start.Once you click the icon the opening logo appears and thereafter it takes more than a minute to start outlook...
22
by: Rudy Ray Moore | last post by:
Why is "Visual Studio .net 2003 7.1 c++" so much slower than VS6 at linking? It looks like "Visual Studio .net 2003 7.1 c++" doesn't even do incremental linking! I make one very minor change in...
9
by: Vito DeCarlo | last post by:
I've been having this problem for a few weeks. PLEASE read this post before responding with some simple reason that has nothing to do with my problem. If you need more information, please request...
2
by: Sid | last post by:
Hi, I've run into the classic "it works on my box" but doesn't work as expected on another test PC. Both boxes have Win XP Pro and .NET 1.1. On the dev box in Visual Studio the app runs....
7
by: alekatz | last post by:
Hi everybody, I have a listbox with movie names, each time a movie is selected, an image of the dvd cover is showed up in a picturebox. The problem I get is that while navigating through the...
1
by: rwmh | last post by:
I'm running this on a 2.8 GHz machine with 1.5 GB RAM. (XP machine) The full suite of VS.NET is installed. I'm running 7.1.3088 Professional Edition. Initial launch from within IDE took only...
0
by: Joel Aufgang | last post by:
I have an asp.net 1.1 app that is experiencing slow page executions. I've added a whole bunch of traces and i'm seeing some results that i don't understand. Here is an partial trace listing of a...
25
by: jwrweatherley | last post by:
I'm pretty new to python, but am very happy with it. As well as using it at work I've been using it to solve various puzzles on the Project Euler site - http://projecteuler.net. So far it has not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.