You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current reconciliation doesn't calculate folder sizes. This is because of performance optimisation. However, after reconciliation we can restore folder size with query like this:
WITH Parent := File,
UPDATE File
FILTER
.mediatype.name = 'application/directory'
SET {
size := (SELECT sum((
SELECT Parent { size }
FILTER
Parent.namespace = File.namespace
AND
Parent.path LIKE File.path ++ '/%'
AND
Parent.mediatype.name != 'application/directory'
).size))
};
We need to find a better way to store folder size.
Current flow is to update all parents on moving/uploading a file to folder. This however leads to concurrent transactions updating the same parents.
The text was updated successfully, but these errors were encountered: