Hi
@Martin Dráb,
i did a fair test, where i created the same exact order 200 times and tested the delete batch job in each try
Inner join without any field (original) (200 records) (dynamic fields No)
First try: 9 minutes 31 seconds
Second try: 3 minutes 41 seconds
Third try: 3 minutes 56 seconds
Forth try: 3 minutes 48 seconds
-----------------------------------------------------
Exist join without any field (200 records) (dynamic fields No)
First try: 4 min and 3 seconds
Second try: 4 minutes 9 seconds
Third try: 4 minutes 6 seconds
Forth try: 3 minutes 43 seconds
Forth try: 4 minutes
-----------------------------------------------
Exist join with selecting one field (XXXLocationId) in the query (200 records)
First try: 4 minutes and 9 seconds
Second try: 4 minutes 21 seconds
Third try: 4 minutes 29 seconds
-----------------------------------------------------------
Indeed exist join with selecting a field or not selecting any field in the query was almost the same.
However surprisingly, inner join was better? is it because trace parser converted inner join to cross join and selected all fields regardless?