nickva commented on PR #5603:
URL: https://github.com/apache/couchdb/pull/5603#issuecomment-3257085192

   I tried a few more schedules:
   
   ```erlang
   -define(INTERVALS, [
       ?D,
       ?M,
       ?Y, ?Y * 2, ?Y * 4, ?Y * 8, ?Y * 16
   ]).
   ```
   
   ```
     3000-01-01T00:00:00Z  : 995808
     3113-08-09T00:00:00Z  : 720
     3113-09-08T00:00:00Z  : 384
     3113-09-24T00:00:00Z  : 336
     3113-10-08T00:00:00Z  : 192
     3113-10-16T00:00:00Z  : 192
     3113-10-24T00:00:00Z  : 192
     3113-11-01T00:00:00Z  : 144
     3113-11-07T00:00:00Z  : 96
     3113-11-11T00:00:00Z  : 96
     3113-11-15T00:00:00Z  : 96
     3113-11-19T00:00:00Z  : 96
     3113-11-23T00:00:00Z  : 96
     3113-11-27T00:00:00Z  : 96
     3113-12-01T00:00:00Z  : 96
     3113-12-05T00:00:00Z  : 48
     3113-12-07T00:00:00Z  : 48
     3113-12-09T00:00:00Z  : 48
     3113-12-11T00:00:00Z  : 48
     3113-12-13T00:00:00Z  : 48
     3113-12-15T00:00:00Z  : 48
     3113-12-17T00:00:00Z  : 48
     3113-12-19T00:00:00Z  : 48
     3113-12-21T00:00:00Z  : 48
     3113-12-23T00:00:00Z  : 48
     3113-12-25T00:00:00Z  : 48
     3113-12-27T00:00:00Z  : 48
     3113-12-29T00:00:00Z  : 24
     3113-12-30T00:00:00Z  : 24
     3113-12-31T00:00:00Z  : 24
     3114-01-01T00:00:00Z  : 24
     3114-01-02T00:00:00Z  : 24
     3114-01-03T00:00:00Z  : 24
     3114-01-04T00:00:00Z  : 24
     3114-01-05T00:00:00Z  : 24
     3114-01-06T00:00:00Z  : 24
     3114-01-07T00:00:00Z  : 24
     3114-01-08T00:00:00Z  : 24
     3114-01-09T00:00:00Z  : 24
     3114-01-10T00:00:00Z  : 24
     3114-01-11T00:00:00Z  : 24
     3114-01-12T00:00:00Z  : 24
     3114-01-13T00:00:00Z  : 24
     3114-01-14T00:00:00Z  : 24
     3114-01-15T00:00:00Z  : 24
     3114-01-16T00:00:00Z  : 24
     3114-01-17T00:00:00Z  : 24
     3114-01-18T00:00:00Z  : 24
     3114-01-19T00:00:00Z  : 24
     3114-01-20T00:00:00Z  : 24
     3114-01-21T00:00:00Z  : 24
     3114-01-22T00:00:00Z  : 24
     3114-01-23T00:00:00Z  : 24
     3114-01-24T00:00:00Z  : 24
     3114-01-25T00:00:00Z  : 24
     3114-01-26T00:00:00Z  : 24
     3114-01-27T00:00:00Z  : 24
     3114-01-28T00:00:00Z  : 24
     3114-01-29T00:00:00Z  : 24
     3114-01-30T00:00:00Z  : 16
   ```
   
   We get more than 30 days then about 6 months. So a lot more days but then 
everything sort of gets squashed into the oldest bin after two years. To keep 
the algorithm simple we do simple pair-wise merging so sharp jumps from days to 
months don't work as well -- would need another merge strategy (a custom clause 
to merge days to months, months to years). I had actually started that way but 
then the algorithm had more special cases and was a bit more fiddly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to