Is there a way to duplicate files without instantly committing them.

0
Hi,    I have a functionality that has to duplicate dozens of files at once. The duplicate file java action from CC works, but directly commits (inside a loop in this case), so would not be the best option for this use case.    Are there any other methods on duplicating files or is the istant commit needed to keep the database and file server in sync?
asked
1 answers
1

Yes, A filedocument is an object in a table + a file on disk. This this the only entity in Mendix that has this combination.  That is why is is always committed to keep it in sync.

The only alternative I can imagine is to store the contents  BASE64 encoded in a string (of a seperate entity and thus in database) and do the conversion to a real filedocument later. But that may take server memory.

This can be a complex solution.

answered