We're updating the issue view to help you get more done. 

The JDBC batch sorting algorithm can be simplified due to latest modifications

Description

The JDBC batch sorting algorithm has undergone many modifications to address various entity-relationship models.

Initially, the sorting was done in a single main traversal with previous/next checks. Because this was problematic, we changed to a bubble sort-like implementation which makes it useless to check the previous entries.

Therefore, we should simplify to only check the next statement and rearrange it if it's a parent entity that needs to be persisted first.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.12

Priority

Minor