Example of Cluster SLOWER than InnoDB -- help?
Hi all,
I am inserting a message into a Cluster table and then sending a notification to the receiver (if any). The receiver then reads and deletes the message record.
If there is no receiver then a single node Cluster (on a Powerbook G4 / OS X) is the same speed at inserting as InnoDB -- about 100 transactions per second (which seems slow to me).
If there is a receiver then InnoDB performance remains good but the Cluster performance slows to 10 messages per second!! :-(
Here is basically what is happening:
put:
set autocommit = 0
select put_seqnum from <queueName>_state for update
update <queueName>_state set put_seqnum = <next>
replace into <queueName>_messages (seqnum, message) values (..., ...)
update <queueName>_state set dirty = 1
commit
get:
set autocommit = 1
select dirty from <queueName>_state
// if not dirty then wait (with timeout) for notification
select get_seqnum from <queueName>_state
select seqnum, message from <queueName>_messages where seqnum > ... order by seqnum
loop
{
set autocommit = 0
update <queueName>_state set get_seqnum=...
delete from <queueName>_messages where seqnum=...
commit
}
set autocommit = 1
update <queueName>_state set dirty = if( put_seqnum > get_seqnum, 1, 0)
Ideas?
Thanks,
John
Subject
Views
Written By
Posted
Example of Cluster SLOWER than InnoDB -- help?
6327
December 07, 2004 11:48AM
3092
December 07, 2004 02:41PM
3210
December 07, 2004 07:42PM
2956
December 08, 2004 11:14AM
2985
December 08, 2004 04:50PM
5533
December 09, 2004 02:45PM
2954
December 07, 2004 03:39PM
2949
December 07, 2004 08:13PM
2944
December 07, 2004 11:51PM
2944
December 08, 2004 12:36AM
3062
December 08, 2004 03:55PM
3103
December 08, 2004 06:14PM
2906
December 08, 2004 09:27PM
2966
December 08, 2004 05:05PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.