Hi.


It looks very strange.



So give us the information about version of MySQL and operating system.

If you use MySQL compiled manually, it will be helpful

to use official binaries of the latest release.





John Smith <[EMAIL PROTECTED]> wrote:

> Hi All,

> 

> I have built a search application in php/libcurl and I store its results in MySQL.

> 

> The problem is that I am not used to dealing with the sizes of tables my search 
> application produces, roughly around 400,000 rows in a table the last time I got ran 
> it correctly.

> 

> Right to my problem.

> 

> I fork 20 versions of my spider at a time, these forks all have a connection to the 
> database and do selects, inserts and updates on the same table at once. When its 
> going at full steam I can be inserts 1000s of rows a minute.

> 

> I am using MyISAM as I need its fulltext search cabablities. I remove the fulltext 
> index before I start any changes to the table.

> 

> I am finding that my php script is not being able to select from the database at 
> random points, I have tracked this down to a 127 erros, the table it corrupt.

> 

> Before I start my spiders (before it forks) I run myisamck -r on my .MYI file but it 
> corrupts during the scripts execution time and this means it is no longer able to 
> select from the DB (Curcial to know if its needing updated or inserted as a new 
> record)

> 

> Any hints, any more information needed from me etc would be great.

> 

> My table struture is:

> 

> CREATE TABLE thetable (

>  id int(11) NOT NULL auto_increment,

>  sid int(11) NOT NULL default '1',

>  pid varchar(14) NOT NULL default '0',

>  tid varchar(255) NOT NULL default '',

>  cid varchar(255) NOT NULL default '',

>  location text NOT NULL,

>  number int(14) NOT NULL default '0',

>  image text NOT NULL,

>  description text NOT NULL,

>  link text NOT NULL,

>  uo tinyint(1) NOT NULL default '0',

>  sd tinyint(1) NOT NULL default '0',

>  added int(14) NOT NULL default '0',

>  new tinyint(4) NOT NULL default '1',

>  old tinyint(4) NOT NULL default '0',

>  PRIMARY KEY  (id),

>  KEY sid (sid),

>  KEY old (old),

>  KEY new (new),

>  KEY sd (sd),

>  KEY uo (uo),

>  KEY pid (pid),

>  KEY tid (tid),

>  KEY cid (cid)

> )

> 

> Ta,

> John

> 

> ___________________________________________________

> Have your own email and web address for life.

> 

> http://www.homemaster.net - Homemaster. Come Together. Online.

> 

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to