Storing Large amount of file paths in DB
问题 I need some approach for the most efficient way to store file (and folder) paths in DB (near a million records), such that I can search for there names. Saving the full path is obviously wrong, because a lot of repetition will occur, for example: C:\Windows C:\Windows\System C:\Windows\System\Notepad.exe For this, I built a simple hierarchical DB, with just three fields: ID Name Parent 0 C: null 1 Windows 0 2 System 1 3 Notepad.exe 2 And I am recovering item's path by using a "recursive with"