WIP: Fixed DataStreams reindexing when appending new data
ERP5 MR here.
Right now appending data to a DataStream causes ERP5's database to reindex that DataStream. This can take a lot of time on big DataStream objects without it being necessary. These 2 Merge Requests fix this issue.
The ERP5 MR adds a check upon trying to reindex an object and if that object is stored in the TransactionVariable (on the list contained on the key 'explicitly_deny_object_reindexation_list') it is excluded from reindexing in that transaction. This can be used for other cases where somebody might not want an object to be reindexed.
This MR adds the DataStream-specific changes. It adds a utility function to the Wendelin component for changing the TransactionVariable. It also adds a new Python script that is called before appending new data to a DataStream that adds it to the exception list for the transaction. There is also a new test in testWendelin(WIP) that checks if appending to a DataStream causes a reindexation and if changing another object doesn't.