Hi Thomas,
After migration to BaseX77, db:optimize is running into an exception: java.io.IOException: Stopped at ., 8/20: [java] [FOUP0002] Database 'xxx' is currently opened by another process. Before migration, I used BaseX761-20130303.204518, and this version worked well.
I guess you had the database opened in another instance while optimizing it. I remember we’ve added some restrictions to the db:optimize function because it was possible to corrupt a database in 7.6 while optimizing it in another process. If your database is only opened by XQuery, you shouldn’t encounter this message.
I have an additional question: My task is to read objects from a file and replace (if already exists) or insert (if new) the objects in the database. The key is a specific attribute (@n). Parallel threads could exist. Could you suggest a better solution?
If I get it right, this problem is related to the first issue. If not, do you have a minimized example that allows us to reproduce the issue?
And yet another question: Is it possible to store the backup-files (CREATE BACKUP) in another location than the database-directory (e.g. backup-directory)?
Currently no, but we could think about introducing such an option. May I ask what are your specific reasons for storing backups somewhere else?
Best, Christian