search for: index_check_exist

Displaying 2 results from an estimated 2 matches for "index_check_exist".

2017 Apr 20
2
Question about the ticket #743 omindex: delay libmagic checks
...n, the call to libmagic is expensive than call the stat, so we can check the size by call the stat to get size before call libmagic to get a mime type. But how about the timestamps check? since timestamps check need to iterate the DB to check if the file has been indexed and hasn't changed(in `index_check_existing` function in omega\index_file.cc), so it is expensive too. Should we call the libmagic before or after the timestamps, or do we have another way to check the timestamps? What's more, how should we write tests to prove the omindex works correctly, to generate some practical directories and u...
2017 Apr 23
2
Question about the ticket #743 omindex: delay libmagic checks
...an check the size by call the stat to get size before call > > libmagic to get a mime type. > > Yes. > > > But how about the timestamps check? since timestamps check need to > iterate > > the DB to check if the file has been indexed and hasn't changed(in > > `index_check_existing` function in omega\index_file.cc), so it is > expensive > > too. Should we call the libmagic before or after the timestamps, or do we > > have another way to check the timestamps? > > We also have an upper bound on the newest timestamp in the database at the > start of th...