Skip to content
Commit ac46a17d authored by Akarsh Simha's avatar Akarsh Simha
Browse files

Changes to CatalogDB::AddEntry()

1. Make CatalogDB::AddEntry() a public proxy method for a private
   method CatalogDB::_AddEntry().

2. The public method opens a DB connection, and closes the DB after
   use. This is a time-consuming operation, so it is unwise to do so
   when calling AddEntry multiple times.

3. When loading entire catalogs into the DB, the methods should call
   the private method _AddEntry(), which does not open/close a DB
   connection. -- This has not yet been implemented completely in this
   commit.

4. FindCatalog opens/closes a DB connection, so after calling
   FindCatalog, we must re-open the DB connection.

5. Allow ID to be specified even when using the Misc catalog.
parent 594738bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment