Closed nicklaw5 closed 3 weeks ago
Seems we'd need to add the timeseries option on Document::$collection like we already do for the capped, size and max collection options.
That'd be the way to go IMO. Possible it'll turn out that instead of array-based configs it'll be better to have dedicated CappedCollection
and TimeSeriesCollection
VOs :)
It doesn't appear to me that it would be too difficult to implement this.
Are you willing to give it a go?
Are you willing to give it a go?
I'd be willing to make a stab at this @malarzm. Is there any preference on direction re: using the same Collection definition or having a separate decorator for TimeSeriesCollection?
I'd be willing to make a stab at this @malarzm.
Awesome! Thank you 🎉
FWIW there's work started in a draft PR here: #2542
Is there any preference on direction re: using the same Collection definition or having a separate decorator for TimeSeriesCollection?
For now we've decided to follow in the footsteps of capped collection as it made sense, however I really like the idea of having #[Collection]
, #[CappedCollection]
and #[TimeSeriesCollection]
! That would clearly separate what setting goes where. If I'm not mistaken this can be done as a separate step though, so:
HI @bradroc, it would be great to collaborate on this. We need to rerun/fix/add some tests on the project. I've shared some progress on Symfony's new-doctrine-contributors slack channel. If you can join us there it would be great.
Seeing some progress on this in #2687
This feature has been implemented and will be released in 2.10.0!
Feature Request
Summary
As far as I can tell, this ODM doesn't yet support creating time series collections.
It doesn't appear to me that it would be too difficult to implement this. Seems we'd need to add the
timeseries
option onDocument::$collection
like we already do for thecapped
,size
andmax
collection options.The end goal for my team and I would be to have the ability to create time series collections using the DoctrineMongoDBBundle
schema:create
command: