Open drnextgis opened 4 months ago
There is a difference between these two invocations: in one case, the function is called with istrigger
set to False
, and in the other, it is set to True
. This affects the execution of update_partition_stats
because certain parts of the function are skipped when istrigger
is True
, while the rest of the function still runs. Therefore, the point that the same piece of code executes twice remains valid.
@bitner, could you please elaborate on why the "Modifying Constraints" part is skipped when update_partition_stats
is called with istrigger
set to True
?
The
update_partition_stats_q
function is being invoked from load_partition in the pypgstac. However, this function is also being automatically triggered by changes to theitems
table:Reference to the trigger definitions.
Is this redundant? If so, we should consider removing the redundant call from
load_partition
.