1. A data recovery method comprising: storing primary data of a database in byte-addressable non-volatile random access memory (NVRAM), the primary data comprising one or more persistent tables of data in a byte-addressable, random access memory (RAM) format, the database comprising a persistent memory allocator that maps persistent memory pointers of a persistent memory comprising the NVRAM to virtual memory pointers of a virtual address space associated with the database, and one or more queries operating on the primary data stored in the NVRAM directly without any portion of the primary data being cached in a volatile dynamic random access memory (DRAM); storing secondary data of the database in the DRAM, the secondary data comprising data structures for assisting an execution of the one or more queries on the primary data of the database, the one or more queries received by a database management system associated with the database; and in response to a failure of the one or more queries, performing a recovery of the query execution by at least: recovering, by the database management system, the persistent memory allocator; mapping, by the persistent memory allocator, the persistent memory to the virtual address space to at least recover, based at least on the persistent memory pointers, the primary data; translating, by the persistent memory allocator, the persistent memory pointers to virtual memory pointers of a same and/or a different virtual address space for storing restored primary data; restoring, by the database management system, the primary data by least undoing changes to the primary data made by unfinished transactions of the query execution at the time of failure of one of the one or more queries; reconstructing, by the database management system, the secondary data based at least on the primary data; and executing, based at least on the restored primary data and the reconstructed secondary data, the unfinished transactions of the query execution, the execution of the unfinished transactions changing the restored primary data.