When I set retentionTimeValue to 1 day for a table...
# getting-started
a
When I set retentionTimeValue to 1 day for a table, segments older than 1 day will be deleted and moved to Deleted Segments folder . Then how long will the data stay there? Is there a default duration?
k
I am also trying to understand same thing, I want to retain data for 6 months, any clearity on how to do this, would be appreciated!
m
the default time in the deleted segments folder is 7 days
for a 6 mth retention you can set the retention period to 6 mths in the segment config
Copy code
"segmentsConfig": {
    "retentionTimeUnit": "DAYS",
    "retentionTimeValue": "60",
  },
k
Okay thanks.
a
Can I change the default time in the deleted segments folder? @User
m
I think it's hardcoded
at least that's how it seems from my code reading
maybe create a GitHub issue if you need it to be configurable - https://github.com/apache/pinot/issues
a
I see. Thanks.
n
there is a config. let me dig it up
Copy code
controller.deleted.segments.retentionInDays
@User
🙌 1
a
Thanks @User