Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: DBI seems to randomly die

by UnderMine (Friar)
on Jun 06, 2006 at 20:59 UTC ( [id://553921]=note: print w/replies, xml ) Need Help??


in reply to DBI seems to randomly die

My initial thoughts would be related to table locking.

Creation and Dropping is not a trivial database operation as it involves a lot of behind the scenes work (e.g. each merge table creates two files .frm and .MRG and uses lot of open handles). You are trying to monitor what is happening while creating and dropping tables on the fly. This is usually causes issues as the mysql schema is trying to do selects and exclusive locks to create the tables. With DDL statements there is no concept of a transaction they just occur and will break anything that attempts to run at the same time.

You may be better upgrading to MYSQL 5 and using VIEWS or possibly creating HEAP tables on the fly as these are tempory in nature. However if you want to stay with 4.1 try adding INSERT_METHOD=NO to the end of the create table statement as this prevents some of the locking issues as the merge table can nolonger perform inserts.

Hope it help
UnderMine

Update: MERGE tables can be tempory just not in memory only like HEAP tables.

Replies are listed 'Best First'.
Re^2: DBI seems to randomly die
by FitTrend (Pilgrim) on Jun 07, 2006 at 14:00 UTC

    As it stands, I'm required to use 4.1 at the moment until a planned upgrade to 5 later this year.

    I've played with this a little and it seems to have help the issue a bit, but not completely. I want to say this is helping confirm that files are still in use on the windows server box even though they are not locked (based on "show open tables;")

    thanks for the input. these are great suggestions

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://553921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-18 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found