247e6b97ca054df01068657d2ffc84d1a48c90ac aamp Sun Apr 3 08:56:50 2011 -0700 Changed HDB stuff in hgLiftOver a bit to reduce database calls. This has not helped speed up the CGI though yet diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index 18d403e..e7bf03d 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -401,30 +401,38 @@ struct dbDb *hDbDbList(void); /* Return list of databases that are actually online. * The list includes the name, description, and where to * find the nib-formatted DNA files. Free this with dbDbFree. */ struct dbDb *hDbDbListMaybeCheck(boolean doCheck); /* Return list of databases in dbDb. If doCheck, check database existence. * The list includes the name, description, and where to * find the nib-formatted DNA files. Free this with dbDbFree. */ struct dbDb *hArchiveDbDbList(void); /* Return list of databases in archive central dbDb. * Free this with dbDbFree. */ +struct hash *hDbDbHash(); +/* The hashed-up version of the entire dbDb table, keyed on the db */ +/* this is likely better to use than hArchiveOrganism if it's likely to be */ +/* repeatedly called */ + +struct hash *hDbDbAndArchiveHash(); +/* hDbDbHash() plus the dbDb rows from the archive table */ + int hDbDbCmpOrderKey(const void *va, const void *vb); /* Compare to sort based on order key */ char *hDbDbNibPath(char *database); /* return nibPath from dbDb for database */ struct sqlConnection *hMaybeConnectArchiveCentral(void); /* Connect to central database for archives. * Free this up with hDisconnectCentralArchive(). */ boolean hHostHasPrefix(char *prefix); /* Return TRUE if this is running on web-server with host name prefix */ boolean hIsPrivateHost(void); /* Return TRUE if this is running on private (development) web-server.