Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

The total number of locks exceeds the lock table size

 
Goto page Previous  1, 2
   Database Help (Home) -> mySQL RSS
Next:  Social Bookmarks Script  
Author Message
Axel Schwenke

External


Since: Sep 20, 2011
Posts: 5



(Msg. 16) Posted: Tue Sep 20, 2011 7:45 pm
Post subject: Re: The total number of locks exceeds the lock table size [Login to view extended thread Info.]
Archived from groups: comp>databases>mysql (more info?)

Hi $UNKNOWN,

Ignoramus19458 wrote:
>
> I made changes, so that I do a COMMIT once in a while, roughly once
> every 100,000 rows or so. I split the work into chunks and process
> one chunk at a time, first populating another identical table, and
> them doing INSERT SELECT.
>
> This is going to be my modus operandi, as I want to be able to use the
> master table most of the time. This allows me to lock it for
> populating only once per day or per week, instead of badgering it with
> INSERTs all the time.

Why do you believe INSERT ... SELECT being faster than INSERT alone?
Especially if you use an optimized INSERT operation:

- LOAD DATA INFILE -or-
- prepared INSERT statement -or-
- multi-row INSERT syntax

I can think of only one scenario where this would make sense: if your
data arrives in random order and you can do INSERT ... SELECT in PK
order.

>>> I googled for "mysql
>>> datawarehouse engine" and it appears to be a couple of engines that
>>> claims to be better than innodb for DW.
>>
>> Told you so.
>
> What engine would you suggest. though?




XL

 >> Stay informed about: The total number of locks exceeds the lock table size 
Back to top
Login to vote
Bodo

External


Since: Sep 23, 2011
Posts: 1



(Msg. 17) Posted: Fri Sep 23, 2011 1:23 pm
Post subject: Re: The total number of locks exceeds the lock table size [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

make it as easy as possible!

> I am doing a lot of INSERTs in parallel (populating a data warehouse).

Why?
Do not do this unless you are forced to!

We use in my.cnf:

innodb_log_file_size = 1G
innodb_llog_buffer_size = 1G
innodb lock_wait_timeout = 1200

innodb_flush_log_at_trx_commit = 0 -> much better performance

innodb_buffer_pool_size = 48G
innodb_puffer_pool_instances = 25
innodb_additional_mem_pool_size = 160m

kind regards,

Maybe you should enable write buffering for you raid hardware.
I am shure it is hardware battery backed up?

regards,

Toni

box has 96 GB memory.

 >> Stay informed about: The total number of locks exceeds the lock table size 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
generating a random number - is it possible to generate a random number within an sql script rather than the client specifying which random row to select?

Create table syntax? - Warning: Error while executing this query:CREATE TABLE "purchaseorder" ( "PurchaseOrderID" int(10) unsigned NOT NULL auto_increment, "PurchaseCost" double unsigned zerofill NOT NULL default '0000000000000000000000', &...

syntax problem for CREATE TABLE ?? - Hi, I was playing with MySQL (4.1.9) during the weekend, but noticed a minor problem and would like someone to explain this to me. Basically I could successfully create a table with one unique column like this: mysql> create table t1 (c1 int....

FLUSH TABLES hangs if table is locked - Using FLUSH TABLES via the C query API mysql_query() hangs if the table is locked already. That is to say, nothing prevents me from running a LOCK TABLES twice; it won't tell me "it's already locked, don't try to run a FLUSH". Anyone know ...

Java mysql show table status - Hi, I am using java to retrieve a resultset with "show table status" mysql command. I am having problem reading the [name] and [engine] column. In the metadata object it is showing as VARCHAR but when I do getString() it is returning me the o...
   Database Help (Home) -> mySQL All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]