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
9659
July 25, 2005 09:12PM
3258
July 26, 2005 08:43AM
Re: large tables, large keycaches
3215
July 26, 2005 10:37AM
4000
July 26, 2005 11:49AM
3859
July 26, 2005 02:27PM
2890
July 26, 2005 04:36PM
3508
July 27, 2005 10:49AM
3615
July 27, 2005 03:52PM
2617
August 02, 2005 08:04PM
2769
July 26, 2005 10:51AM
2570
July 27, 2005 07:48AM
3345
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.