uwazi
uwazi copied to clipboard
Save multiple files to mongoDB
Our information extraction feature is now expected to accept multiple suggestions at once. During that development, it was noticed that this leads directly to updating multiple files, which is not implemented in the files
manager object. Since this is a change that has bigger scope than information extraction, it was not implemented during the IX development. The single save function was used as a workaround, leading to a tech debt of a potential n+1 queries problem.
The task is:
1, Implement a multiple save for file objects.
2, Rewrite Suggestions.accept
to use it.
3, (Optional, to be discussed) Go through the application to find other places which could benefit from it