nextcloud/lib/private/Files/Cache
Arthur Schiwon 58f7fd2370
use efficient tag retrieval on DAV report request
- uses DAV search approach against valid files joined by systemtag selector
- reduced table join for tag/systemtag search
- supports pagination
- no changes to the output formats or similar

Example request body:

<?xml version="1.0"?>
<oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns">
  <d:prop>
    <d:getcontentlength/>
    <d:getcontenttype/>
    <d:getetag/>
    <d:getlastmodified/>
    <d:resourcetype/>
    <nc:face-detections/>
    <nc:file-metadata-size/>
    <nc:has-preview/>
    <nc:realpath/>
    <oc:favorite/>
    <oc:fileid/>
    <oc:permissions/>
    <nc:nbItems/>
  </d:prop>
  <oc:filter-rules>
    <oc:systemtag>32</oc:systemtag>
  </oc:filter-rules>
  <d:limit>
    <d:nresults>50</d:nresults>
    <nc:firstresult>0</nc:firstresult>
  </d:limit>
</oc:filter-files>

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-06-21 18:19:08 +02:00
..
Wrapper Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_private 2023-06-01 23:10:00 +02:00
Cache.php chore: Drop dead private methods in /lib 2023-06-06 11:01:58 +02:00
CacheEntry.php fix null error in getUnencryptedSize 2022-10-13 15:34:48 +02:00
CacheQueryBuilder.php refactor: remove where specification from SELECT getter 2023-05-10 18:48:06 +02:00
FailedCache.php use searchoperation for storage filter instead of db expression 2021-06-14 16:11:25 +02:00
HomeCache.php Fix return types in phpdoc 2023-05-15 12:24:42 +02:00
HomePropagator.php Update php licenses 2021-06-04 22:02:41 +02:00
LocalRootScanner.php Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30
MoveFromCacheTrait.php Update php licenses 2021-06-04 22:02:41 +02:00
NullWatcher.php Update php licenses 2021-06-04 22:02:41 +02:00
Propagator.php Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30
QuerySearchHelper.php use efficient tag retrieval on DAV report request 2023-06-21 18:19:08 +02:00
Scanner.php Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_private 2023-06-01 23:10:00 +02:00
SearchBuilder.php Refactors "strpos" calls in lib/private to improve code readability. 2023-05-15 15:17:19 +03:30
Storage.php Fix Executing a query: SQLSTATE[42000] 2022-11-29 11:24:56 -06:00
StorageGlobal.php Fix typos in lib/private subdirectory 2022-07-27 08:52:17 -04:00
Updater.php fix: execute throws docrine exceptions not our wrapped ones 2023-05-26 06:56:55 +00:00
Watcher.php more reliable return value for Watcher::checkUpdate 2021-10-15 16:03:18 +02:00