How I can Optimize this mySQL transaction within java code?

Posted by worldpython on Stack Overflow See other posts from Stack Overflow or by worldpython
Published on 2010-03-12T19:59:29Z Indexed on 2010/03/12 20:17 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

Dear All,

I am new to MySql database. I've large table(ID,...). I select ID frequently with java code and.And that make a heavy load on transaction

 select from tableName where ID=someID

notes:

1.Database could be 100,000 records

2.I can't cache result

3.ID is a primary key 4.I try to optimize time needed to return result from query.

Any ideas for optimization ?

thanks in advance

© Stack Overflow or respective owner

Related posts about database

Related posts about database-design