MySQL Forums
Forum List  »  MyISAM

Re: large tables, large keycaches
Posted by: Mike Connell
Date: July 26, 2005 10:37AM

Interesting possibility. What constitutes an "exact" match with MyISAM?

For example, 2 cases below and associated pseudo code to process it:

<begin

case 1
-------
select token_id, amount from token where account_id = ':variable';
set :variable = '1234', execute, fetch results, and process.

select token_id, amount from token where account_id = ':variable';
set :variable = '5678', execute, fetch results, and process.

case 2
-------
select token_id, amount from token where account_id = '1234';
execute, fetch results, and process.

select token_id, amount from token where account_id = '5678'
execute, fetch results, and process.

end>

in case 1 the JDBC ":variable" is substituted with the value so the statement doesn't have to
be reprepared. I do not think with MyISAM there is savings using case1 vs case2.

Is this a correct understanding?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
9176
July 25, 2005 09:12PM
3187
July 26, 2005 08:43AM
Re: large tables, large keycaches
3130
July 26, 2005 10:37AM
2995
July 26, 2005 11:49AM
2722
July 26, 2005 02:27PM
2797
July 26, 2005 04:36PM
2475
July 27, 2005 10:49AM
2497
July 27, 2005 03:52PM
2517
August 02, 2005 08:04PM
2615
July 26, 2005 10:51AM
2463
July 27, 2005 07:48AM
2550
July 28, 2005 01:08PM


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.