From cf6ee1c866ccca617cb2cae98966f04612084e7f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 26 Nov 2015 17:47:53 +0100 Subject: [PATCH] cache mountpoints in the db --- db_structure.xml | 87 ++++++ lib/private/files/config/cachedmountinfo.php | 107 ++++++++ .../files/config/mountprovidercollection.php | 30 ++- lib/private/files/config/usermountcache.php | 167 ++++++++++++ lib/private/files/filesystem.php | 7 +- lib/private/server.php | 6 +- lib/public/files/config/icachedmountinfo.php | 60 +++++ .../files/config/imountprovidercollection.php | 1 + lib/public/files/config/iusermountcache.php | 60 +++++ tests/lib/files/config/usermountcache.php | 249 ++++++++++++++++++ 10 files changed, 769 insertions(+), 5 deletions(-) create mode 100644 lib/private/files/config/cachedmountinfo.php create mode 100644 lib/private/files/config/usermountcache.php create mode 100644 lib/public/files/config/icachedmountinfo.php create mode 100644 lib/public/files/config/iusermountcache.php create mode 100644 tests/lib/files/config/usermountcache.php diff --git a/db_structure.xml b/db_structure.xml index e4bd8d998e..058322f78a 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -127,6 +127,93 @@ + + + + *dbprefix*mounts + + + + + id + integer + 0 + true + 1 + 4 + + + + storage_id + integer + true + + + + + root_id + integer + true + + + + user_id + text + true + 64 + + + + mount_point + text + true + 4000 + + + + mounts_user_index + false + + user_id + ascending + + + + + mounts_storage_index + false + + storage_id + ascending + + + + + mounts_root_index + false + + root_id + ascending + + + + + mounts_user_root_index + true + + user_id + ascending + + + root_id + ascending + + + + + +
+