1. A computing system comprising: a dynamic random access memory; a non-volatile random access memory storing primary data of a database; and a processor to execute processor-executable program code in order to cause the computing system to: determine a plurality of secondary data structures to be rebuilt; determine a current ranking for each of the plurality of secondary data structures; determine to rebuild one of the plurality of secondary data structures based on the determined rankings; and rebuild the one of the plurality of secondary data structures in the dynamic random access memory based on the primary data of the database stored in the non-volatile random access memory.