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
9108
July 25, 2005 09:12PM
3171
July 26, 2005 08:43AM
Re: large tables, large keycaches
3106
July 26, 2005 10:37AM
2947
July 26, 2005 11:49AM
2678
July 26, 2005 02:27PM
2773
July 26, 2005 04:36PM
2449
July 27, 2005 10:49AM
2477
July 27, 2005 03:52PM
2497
August 02, 2005 08:04PM
2561
July 26, 2005 10:51AM
2415
July 27, 2005 07:48AM
2500
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.