Re: How to find a needle in a haystack?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2010-05-19 at 14:07 -0400, aragonx@xxxxxxxxxx wrote:
> The data in the files is of the unstructured binary type.  When I do a
> search, I have _most_ of the file name.  Enough to uniquely identify
> it.

So you don't need to look into the file to get a match? Sounds like the
best procedure would just be to keep an index of all the filenames and
update it when files are added/removed (assuming you have control over
both of these processes). A simple database should be able to handle
this easily, which is pretty much what you suggested yourself. In fact
it looks so simple that a Berkeley DB file would do it, without needing
all the fancy DB machinery or MySQL or Postgres. See for example "man
DB_File".

poc

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux