Jump to content

2784 - the action "optimize catalog" does not delete all entries from the files table


Recommended Posts

in the upload folder are temporarily stored the files that have just been imported, e.g. "..\upload\2022-09-12\test.tif" After tagging them, I move them to their destination folders and the now empty subfolder "...\upload\2022-09-12" is deleted. The following query:
" select * from files where relativepath LIKE '%upload%' "
shows that some very old entries are still in the table "files", which were not deleted by the action "Optimize catalog".
In my catalog: 37 entries, only 2 of them correct.
regards, Uwe


Link to comment
Share on other sites

Please try also this query:

SELECT files.id, files.filename, files.relativepath, files.offline
  FROM files
( SELECT 1 from mediaitems where mediaitems.id = files.id )

There are 46 of such records in my catalog.

Regards, Uwe

Edited by Uwe
query updated
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...