RE: Improving insertion performance by locking tables

2003-07-14 Thread Rudy Metzger
Not by MySQL (or it is that high it doesn't really matter). Your OS
could put a limit on it with max file size.

Just do yourself a favor and apply "\n" after every "row" so that you
can open it with an editor. Otherwise a lot of editors will complain of
"line too long".

Cheers
/rudy

-Original Message-
From: Phil Bitis [mailto:[EMAIL PROTECTED] 
Sent: maandag 14 juli 2003 11:44
To: [EMAIL PROTECTED]
Subject: Re: Improving insertion performance by locking tables

Is there a limit to the number of records I can insert in a
multiple-value
insert?

- Original Message -
From: "Rudy Metzger" <[EMAIL PROTECTED]>
To: "Phil Bitis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 14, 2003 10:18 AM
Subject: RE: Improving insertion performance by locking tables


>From what I know is, that MySQL always locks the MyISAM table before you
insert, update or delete something from it. So the key here is not so
much if you should lock the table, but how you insert the data (single
inserts vs multi inserts). Multi inserts are the way to go. By locking
the table you actually would loose time.

/rudy

-Original Message-
From: Phil Bitis [mailto:[EMAIL PROTECTED]
Sent: zaterdag 12 juli 2003 19:00
To: [EMAIL PROTECTED]
Subject: Improving insertion performance by locking tables

Hello,

We've got an application which does many multiple-value inserts to
different
tables.

Is it worth locking a table before doing a multiple-value insert with
say 50
records? If so, what is the number of records that makes it worthwhile?
If not, is it worth locking a table before doing 2 seperate such
inserts?

How do these locks affect select statements involving the locked tables?

Thanks in advance,
-Phil



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


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





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


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



Re: Improving insertion performance by locking tables

2003-07-14 Thread Phil Bitis
Is there a limit to the number of records I can insert in a multiple-value
insert?

- Original Message -
From: "Rudy Metzger" <[EMAIL PROTECTED]>
To: "Phil Bitis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 14, 2003 10:18 AM
Subject: RE: Improving insertion performance by locking tables


>From what I know is, that MySQL always locks the MyISAM table before you
insert, update or delete something from it. So the key here is not so
much if you should lock the table, but how you insert the data (single
inserts vs multi inserts). Multi inserts are the way to go. By locking
the table you actually would loose time.

/rudy

-Original Message-
From: Phil Bitis [mailto:[EMAIL PROTECTED]
Sent: zaterdag 12 juli 2003 19:00
To: [EMAIL PROTECTED]
Subject: Improving insertion performance by locking tables

Hello,

We've got an application which does many multiple-value inserts to
different
tables.

Is it worth locking a table before doing a multiple-value insert with
say 50
records? If so, what is the number of records that makes it worthwhile?
If not, is it worth locking a table before doing 2 seperate such
inserts?

How do these locks affect select statements involving the locked tables?

Thanks in advance,
-Phil



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


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





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



RE: Improving insertion performance by locking tables

2003-07-14 Thread Rudy Metzger
>From what I know is, that MySQL always locks the MyISAM table before you
insert, update or delete something from it. So the key here is not so
much if you should lock the table, but how you insert the data (single
inserts vs multi inserts). Multi inserts are the way to go. By locking
the table you actually would loose time.

/rudy

-Original Message-
From: Phil Bitis [mailto:[EMAIL PROTECTED] 
Sent: zaterdag 12 juli 2003 19:00
To: [EMAIL PROTECTED]
Subject: Improving insertion performance by locking tables

Hello,

We've got an application which does many multiple-value inserts to
different
tables.

Is it worth locking a table before doing a multiple-value insert with
say 50
records? If so, what is the number of records that makes it worthwhile?
If not, is it worth locking a table before doing 2 seperate such
inserts?

How do these locks affect select statements involving the locked tables?

Thanks in advance,
-Phil



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


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



Improving insertion performance by locking tables

2003-07-12 Thread Phil Bitis
Hello,

We've got an application which does many multiple-value inserts to different
tables.

Is it worth locking a table before doing a multiple-value insert with say 50
records? If so, what is the number of records that makes it worthwhile?
If not, is it worth locking a table before doing 2 seperate such inserts?

How do these locks affect select statements involving the locked tables?

Thanks in advance,
-Phil



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