Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Set Default Collection TTL #74

Open
crazedpeanut opened this issue Mar 19, 2019 · 3 comments
Open

Set Default Collection TTL #74

crazedpeanut opened this issue Mar 19, 2019 · 3 comments

Comments

@crazedpeanut
Copy link

It would be nice to include the default TTL setting when creating collections.

The TTL field on a document is not acknowledged if the collection does not have TTL enabled

@crazedpeanut
Copy link
Author

Created PR #75

@Elfocrash
Copy link
Owner

Hello @crazedpeanut,

I’m not really sure about this one. Ideally you shouldn’t be provisioning your collections through Cosmonaut to begin with. Cosmonaut just does the bare minimum so you don’t get any errors when initialising. Adding TTL would mean I have to also add every other feature related to collection creation which in return means that we will end up with a quite heavy CosmosStoreSetting object. I would have to look deeper into this one.

@crazedpeanut
Copy link
Author

No stress, alternatively would a delegate to configure the collection be more appropriate? Saves Cosmonaut from having to support every field imaginable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants