lehzwo opened a new issue, #14412: URL: https://github.com/apache/grails-core/issues/14412
Updates on objects of nested embedded lists take really long. I use a model where cells are embedded in rows and those rows are themselves embedded in a block. **Block** `List<Row> rows` `static embedded = ['rows']` **Row** `List<Cell> cells` `static embedded = ['cells']` **Update to cell properties** `Block block = Block.get(new ObjectId(jsonObject.block_id))` `Row row = block.rows[rowIdx]` `Cell cell = row.cells[colIdx]` `cell.text = text` `cell.state = state` `block.save(failOnError: true, flush: true)` On update, the version number in the db of **all** rows and **all** cells is increased by 2. The version of the block is increased by 1. This leads to really slow execution times on larger blocks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
