Geometry conflict checking to background #202

Closed
opened 2022-09-13 08:08:03 +02:00 by mpeltriaux · 1 comment
Owner

Status quo

On each save() call of a Geometry object, we perform a check for geometry conflicts, especially intersections with other entries:


    def save(self, *args, **kwargs):
        super().save(*args, **kwargs)
        self.check_for_conflicts()

Now, if the given geometry is rather big and a lot of intersected geometries have been detected, this second step may take a few seconds (on very, very large geometries).

Enhancement

Refactor check_for_conflicts() to a celery background task, so it will be calculated in the background and the user does not need to wait for a result on this operation.

# Status quo On each `save()` call of a Geometry object, we perform a check for geometry conflicts, especially intersections with other entries: ```python def save(self, *args, **kwargs): super().save(*args, **kwargs) self.check_for_conflicts() ``` Now, if the given geometry is rather big and a lot of intersected geometries have been detected, this second step may take a few seconds (on very, very large geometries). # Enhancement Refactor `check_for_conflicts()` to a celery background task, so it will be calculated in the background and the user does not need to wait for a result on this operation.
mpeltriaux added the
enhancement
label 2022-09-13 08:08:03 +02:00
mpeltriaux self-assigned this 2022-09-13 08:08:03 +02:00
Author
Owner

Merged in #204

# Merged in #204
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#202
No description provided.