Project

General

Profile

« Previous | Next » 

Revision 7187

Do not loadAllKeys() for SystemMetadataMap when Metacat first starts up. hzIdentifiers will be populated with a simple SQL statement rather than the serial loading of every single SystemMetadata object. It will remain in synch using the usual entryXXX() methods as before.
This should save us resources where we were previously attempting to load ALL SystemMetadata into memory on startup.

View differences:

IdentifierManager.java
632 632
     * return a listing of all guids in the object store
633 633
     * @return a list of all GUIDs in metacat
634 634
     */
635
    public List<String> getAllGUIDs()
635
    public List<String> getAllSystemMetadataGUIDs()
636 636
    {
637 637
        Vector<String> guids = new Vector<String>();
638
        String sql = "select guid from identifier";
638
        String sql = "select guid from systemmetadata";
639 639
        DBConnection dbConn = null;
640 640
        int serialNumber = -1;
641 641
        try 

Also available in: Unified diff