-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Read only data - sub query
PostPosted: Wed Dec 30, 2009 4:58 pm 
Newbie

Joined: Wed Dec 30, 2009 4:43 pm
Posts: 1
Hi All

I have a table with 500 rows of static data. Each row has a date colum.

My queries will be to get matching rows between 2 dates.

I wrote a program which uses query cache, loaded whole table using select * from table, then I thought subsequent queries which put date constraint like "select * from table where date > 12/1/2009" will get data from cache as it is already loaded.

When I print time to run the subsequent queries with date , I get random numbers sometime high some times low..

Is there a good strategy to deal with these cases.
Please let me know.

Thanks
Macy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.