[osiris-devel] fixing the filters implementation

David Vasil dmvasil at ornl.gov
Fri Nov 17 08:26:31 EST 2006


I've been looking into why the filters always get rearranged when you do
an edit-filters and it turns out this is the way it should work in the
current implementation.  Since Osiris stores the filters in a BDB, the
BDB choses what order to store the items in based on its own sorting
algorithm.

Looking at how the osirismd uses the filters during scans, I see no
benefit in storing the filters in a database.  In md_scan.c the OsirisMD
does a sequential lookup on every filter in the BDB to see if it matches
the current input.  To me this seems like it would create more overhead
than just a flat file.

Changing this to be a flat text file would fix the problem with the
filters being rearranged between edits and it may improve performance a
small amount on the MD.  What are other's thoughts on this?

-- 
-dave



More information about the osiris-devel mailing list