how about a ZFS snapshot of a million files, is that any different than a single file database?
Or possibly a document based data store.
The monolithic persistence layer is an anti pattern unless you have specific reasons to support it.
ZFS is quite nice as filesystems go but it is still a filesystem.