Open Mer0me opened 2 years ago
It is the recommendation App that causes the forced reindexation of oc_comments table. Disabling Recommendation App solve this problem, but the enhancement is still useful : it could be great to search files by their owner or other metadata.
What about the Tags
feature? Maybe in combination with the Automated tagging
app (see e.g. https://portal.nextcloud.com/article/tagging-and-workflows-32.html)?
(Don't use it myself, just know about it and randomly stumbled into your thread :smile: )
As far as I know it is highly not recommended to change entries directly in the DB…
I think Tags are not pertinent for this (we have tried) Tags are designed to be shared with all users, and to regroup multiple documents under shared subject. It's a nonsense to create a tag with a file id as only one file can be tagged by it. And tags can only be a filtering criteria, not a search term.
But thank you for your help !
What about the
Tags
feature? Maybe in combination with theAutomated tagging
app (see e.g. https://portal.nextcloud.com/article/tagging-and-workflows-32.html)?
See https://github.com/nextcloud/server/issues/32455 -- as long as there are no "tag namespaces" or however you want to call it) to privately classify documents for limited groups tags will not help
As far as I know it is highly not recommended to change entries directly in the DB…
It's also not highly recommended to treat a database like some local in-memory array of records but a lot of Nextcloud apps do that 8-).
Is your feature request related to a problem? Please describe. We are using Nextcloud as an Electronic Document Management, and we would like to be able to search files by their owner or fileid. We've tried to add these metadatas as comments, in order to allow the search form to find documents by these metadatas. Each document receive automatically 2 comments like "OWNER:John Smith" and "CID:123456". When you search "Smith", all his files are retrieved. But adding thousand of comments in table oc_comments causes a Mysql crash because each time a user opens a session, oc_comments table seems to be reindexed by nextcloud. We can see multiple occurrence of this sql statement in the mysql process list :
Mysql/MariaDB then runs out of memory and crashes.
Describe the solution you'd like
Describe alternatives you've considered We can build our own search engine and add metadatas in our own table.