I use Mysql with JBOSS as applicationserver.

i have strange response-time differences, which i can't explain.

1) after reboot the computer, it takes about 300ms to read 12 entities (cmp,
read ahead, 2 rows each entity) One entity is accessed by primary key, the
others by
foreign key.

2) when i reboot the computer and run mysql optimize first, it takes only
about 80ms to read the 12 entities!!

3) when i do the same with pure java / jdbc (outside jboss), it takes only
30ms!!! it doesn't matter, if i run optimize or not!

does anybody knows, why there is a difference if run optimize first (java/jdbc
is always fast with/without optimize)

i use mysql 4.0, jconnector mysql-connector-java-3.0.14-production-bin.jar

(i hope you understand my english... :o))

Thanks for your help



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

Reply via email to