hi,
i would like to know if there's any efficient method to cache frequently used tables
here is my problem,
i do cascade filters with different tables,
each time, i re-do a DISTINCT filter for childs, (takes some time)
here is an example of possible orders :
bpm,key,genre
bpm,genre,key
genre;bpm;key
genre;key;bpm
key;genre;bpm
key;bpm;genre
artist,title,comment
artist,comment,title
title,comment,artist
title,artist,comment
comment,artist,title
comment,title,artist
etc etc etc .....................
my concern is :
- is it smarter to cache EVERY or frequently used table
- or simply do the job on the fly (everytime)
(it takes about 1-2 seconds on my P4 @3Ghz)
if use only 3 fields, that's about 3^3 =27 possibilities at the very least,
considering there are from 10 to +1000 entries, depending their content
that looks to be RAM hungry
please gimme your lights,
Thank you ![]()

How-to establish an efficient cache strategy for DataTable(s)
yhz
i couldn't find anything related to it, in the documentation ......
except under System.Web.Caching which i won't need as i don't use ASP ......
do you have any keywords i could search for
also, to answer you, i planned to use a Loading Marquee at startup, exactly for this :-)
Thank you.
SGK
I'm not using SQL, i use an external XML file,
so all DataWizard/SQL features won't be available to me,
also, i rarely need a precise entry, rather a group of entries,
when i need only one, it is at the end of the cascaded filter, thus it's very fast.
i only use DataTables, DataViews & a DataSet;
so, is Indexing really worth for me
also, my DB doesn't need to update in real-time, it is offline
i think it could come from the DISTINCT function,
because at first it was very slow, however,
by using Data.ToTable, it just goes as fast as possible,
maybe it's that the bottleneck;
(while testing, i found it's only slow on first generation of Distinct fields, after it's pretty fast)
(this is why i was thinking about a stupid static cache)
at last, i know if it was C or C# it would be straight forward,
but i have no knowledge of them :-(
anyway,
thank you for your help :-)
have a good week-end !
Nicolas Mueggler
BBVB
BenLovesSQL
yubai
(not so easy for me
thanks !
Ghawas