I built a view of 50k records that I need to access. With normal view it is too slow (180 ms), so I try with hash view that I never used, and the result is even slower !(250 ms) !
(I've just read the new page http://www.equi4.com/mkmapping.html)
Here is what I've done :
c4_View view=db.GetAs("table[key:S,val:S]"),selection;
c4_View viewsec=db.GetAs("sec[_H:I,_R:I]");
c4_View viewhash=view.Hash(viewsec,1);
c4_Row row,searchrow;
c4_StringProp val("val");
c4_StringProp key("key");
for (idx=0;idx<TOTAL;idx++)
{
sprintf(st1,"%d%d%d%d",idx,idx,idx,idx);
sprintf(st2,"%d%d%d%d",idx,idx,idx,idx);
key(row)=st1;
val(row)=st2;
view.Add(row);
}
db.Commit();
key(searchrow)="5555";
selection=viewhash.Select(searchrow);what's wrong ?? is there any sample code ?
Thanks for any information.
-- Riccardo Cohen
Articque Les Roches 37230 Fondettes France email = [EMAIL PROTECTED] web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49
_______________________________________________ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
