You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spring-data-mongodb supports TimeSeries since version 3.3. It allows to declare and create new timeseries collection. The @TimeSeries annotation offers many parameters such as those which are in the sub-object timeseries, (timeField, metaField and granularity). But there is no support for a field that comes with the TimeSeries arrival which is expireAfterSeconds (time series collections).
Regarding the code the CollectionOptions class, there is no field corresponding to expireAfterSeconds. Then if we want to create a time series with automatic expiration period, we must bypass the Spring classes and annotations (that's sad 🙁).
Is a support for the expireAfterSeconds planned for @TimeSeries? If not, I suggest to add the option to @TimeSerie annotation only. As mentionned in documentation: expiredAfterSeconds
Optional. Enable the automatic deletion of documents in a time series collection by specifying the number of seconds after which documents expire. MongoDB deletes expired documents automatically.
(therefore, I don't understand why this option is not part of timeseries sub-object...)
I hope this proposal will interest you
Regards
The text was updated successfully, but these errors were encountered:
Hello 🙂
Spring-data-mongodb supports TimeSeries since version 3.3. It allows to declare and create new timeseries collection. The @TimeSeries annotation offers many parameters such as those which are in the sub-object timeseries, (
timeField
,metaField
andgranularity
). But there is no support for a field that comes with the TimeSeries arrival which isexpireAfterSeconds
(time series collections).Regarding the code the
CollectionOptions
class, there is no field corresponding toexpireAfterSeconds
. Then if we want to create a time series with automatic expiration period, we must bypass the Spring classes and annotations (that's sad 🙁).Is a support for the
expireAfterSeconds
planned for@TimeSeries
? If not, I suggest to add the option to@TimeSerie
annotation only. As mentionned in documentation:expiredAfterSeconds
(therefore, I don't understand why this option is not part of
timeseries
sub-object...)I hope this proposal will interest you
Regards
The text was updated successfully, but these errors were encountered: