in reply to Re^3: Key to use for files in db!
in thread Key to use for files in db!
I guess that it could be OK when database finely tuned. But optimizer could decide that index is not selective.SELECT * FROM mytable WHERE path = '/my/path/to/file/isthis.dat';
SELECT * FROM mytable WHERE md5(path) = md5('/my/path/to/file/isthis.dat');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Key to use for files in db!
by Ace128 (Hermit) on Jan 17, 2006 at 19:17 UTC | |
by pajout (Curate) on Jan 18, 2006 at 18:23 UTC |