CPC G06F 16/185 (2019.01) [G06F 16/172 (2019.01)] | 25 Claims |
1. A method, comprising:
implementing a database file system (DBFS) where a plurality of files in a file system are stored in a database backend;
receiving a first file system command to access a directory in the DBFS, the directory having multiple files of the plurality of files in the file system;
constructing a node tree for the multiple files in the directory in response to the first file system command, wherein the node tree is constructed based on a table for the directory in the database backend having columns that hold metadata associated with the files;
loading file contents for the files in the directory into a cache in response to the first file system command to access the directory, wherein the node tree references the file contents for the files in the cache;
receiving a second file system command to access a file of the multiple files in the directory; and
accessing, in response to the second file system command, the previously constructed node tree to identify file contents of the file in the cache based on a reference to the file contents for the file in the node tree.
|