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
9394
July 25, 2005 09:12PM
3221
July 26, 2005 08:43AM
Re: large tables, large keycaches
3169
July 26, 2005 10:37AM
3459
July 26, 2005 11:49AM
3215
July 26, 2005 02:27PM
2843
July 26, 2005 04:36PM
2937
July 27, 2005 10:49AM
3000
July 27, 2005 03:52PM
2556
August 02, 2005 08:04PM
2684
July 26, 2005 10:51AM
2504
July 27, 2005 07:48AM
2911
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.