Remove some 'maybe' comments for 'drop immediately'

This commit is contained in:
Klaas van Schelven
2024-07-15 11:02:08 +02:00
parent d5bfe70488
commit fbee32c79a
2 changed files with 0 additions and 10 deletions
-5
View File
@@ -203,11 +203,6 @@ class BaseIngestAPIView(View):
# "what is a limit anyway, if you can go either over it, or work is done before the limit is reached")
evict_for_max_events(project, timestamp, project_stored_event_count)
# project.retention_last_eviction = timestamp
# project.retention_max_total_irrelevance
# TODO-if-the-above: actually save the project? or use an update call?
# TODO-if-the-above: the idea of cooling off the max_total_irrelevance
# NOTE: an event always has a single (automatically calculated) Grouping associated with it. Since we have that
# information available here, we could add it to the Event model.
event, event_created = Event.from_ingested(
-5
View File
@@ -64,11 +64,6 @@ class Project(models.Model):
quota_exceeded_until = models.DateTimeField(null=True, blank=True)
retention_max_event_count = models.PositiveIntegerField(default=10_000)
# bookkeeping of the eviction algorithm
# this will be needed if/when we take an approach of 'drop immediately'
# retention_last_eviction = models.DateTimeField(null=True, blank=True)
# retention_max_total_irrelevance = models.PositiveIntegerField(null=True, blank=True)
def __str__(self):
return self.name