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?
6290
December 07, 2004 11:48AM
3055
December 07, 2004 02:41PM
3190
December 07, 2004 07:42PM
2930
December 08, 2004 11:14AM
2960
December 08, 2004 04:50PM
5506
December 09, 2004 02:45PM
2927
December 07, 2004 03:39PM
2923
December 07, 2004 08:13PM
2914
December 07, 2004 11:51PM
2924
December 08, 2004 12:36AM
3043
December 08, 2004 03:55PM
3076
December 08, 2004 06:14PM
2880
December 08, 2004 09:27PM
2939
December 08, 2004 05:05PM
Sorry, you can't reply to this topic. It has been closed.
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.