Locate not finding files
Posted: Sat 31 Jul 2010 11:27
Further to my locate speed problem I have found that on a test set of a few thousand sha1 hashes locate fails to find the hash I am looking for (I have used a database browser to confirm that the hash is in the database.)
my commands are in this order:
sql = "create index if not exists Hashindex on InnHash(sha1)";
sql = "select * from InnHash order by md5";
(not sure if the above is necessary)
if(ShaHash->Locate("sha1", sha1, TLocateOptions() << loCaseInsensitive))
ShaHash is a UniQuery and is unidirectional
in both cases that hashes are in uppercase, but I have used the case insensitive option anyway.
The UseUnicode opton is set in the UniConnector - but cant see how this would affect it.
my commands are in this order:
sql = "create index if not exists Hashindex on InnHash(sha1)";
sql = "select * from InnHash order by md5";
(not sure if the above is necessary)
if(ShaHash->Locate("sha1", sha1, TLocateOptions() << loCaseInsensitive))
ShaHash is a UniQuery and is unidirectional
in both cases that hashes are in uppercase, but I have used the case insensitive option anyway.
The UseUnicode opton is set in the UniConnector - but cant see how this would affect it.