Comments (11)
Ok i just verified that it's an issue. I will be fixing that issue by adding an extra property on the settings.
Something like.
- OnDatabaseThroughput = ThroughputBehaviour.UseCollectionThroughput
- OnDatabaseThroughput = ThroughputBehaviour.UseDatabaseThroughput
Does this sound good?
from cosmonaut.
Fixed and feature added in 2.9.0
Thanks for the request.
from cosmonaut.
Don't forget to star the project if you like it. It helps with visibility :)
from cosmonaut.
Hello @Mortana89
Let me get this straight. If you provision database throughput and then run Cosmonaut against that database, will it create collections with dedicated throughput on top of the database throughput?
from cosmonaut.
That's indeed correct!
from cosmonaut.
Oh, we don't want that. I will have to verify the behaviour locally but if that is the case then I will add a check to see if the collection has an offer, and if it does, then the throughput value on the collection level will be ignored.
For now, I recommend provisioning your database and your collections before you start using Cosmonaut against them, if you want database level provisioning.
from cosmonaut.
Oh, we don't want that. I will have to verify the behaviour locally but if that is the case then I will add a check to see if the collection has an offer, and if it does, then the throughput value on the collection level will be ignored.
For now, I recommend provisioning your database and your collections before you start using Cosmonaut against them, if you want database level provisioning.
Thanks. I will for now. Currently I use cosmonaut in a microservice, which creates a collection per 'event' it receives, but we're still in development so I can cope with manually changing this in Cosmos DB as it isn't doing this many times. The emulator is a bit tricky to spot this issue, but you can easily see it in the Azure instance. All collections that are shared, have this indicated on the homepage of the Cosmos DB resource:
The emulator also supports this sharing on DB level, but it doesn't visualize it as clearly.
from cosmonaut.
I am wondering. Why do you go about it that way? You you mean one collection per event type? One collection per event (single document) wouldn't make sense.
from cosmonaut.
I am wondering. Why do you go about it that way? You you mean one collection per event type? One collection per event (single document) wouldn't make sense.
It's a multi-tenant application, once a tenant is registered, we need to approve his registration. Approving his registration fires a 'TenantApproved' event on our bus, an all our microservices do their work (like, creating a dedicated collection for this tenant to store microservice specific data).
from cosmonaut.
Ok i just verified that it's an issue. I will be fixing that issue by adding an extra property on the settings.
Something like.
- OnDatabaseThroughput = ThroughputBehaviour.UseCollectionThroughput
- OnDatabaseThroughput = ThroughputBehaviour.UseDatabaseThroughput
Does this sound good?
Sounds perfect! Thanks!
from cosmonaut.
Thanks for implementing!
from cosmonaut.
Related Issues (20)
- RequestRateTooLarge in AppInsights HOT 5
- how can i add attachements? HOT 1
- Continuation token does not work if first page contains all null in orderby field HOT 1
- Pagination with MAX_ITEM_COUNT -1 HOT 3
- CosmosStore.AddAsync with RequestOptions throws RuntimeBinderException when using TypeNameHandling.All HOT 4
- Cosmonaut v3 SDK
- Exception: There is no way this will ever be thrown. (What all great developers say) HOT 3
- Polymorphic Store type HOT 2
- Exceition: FindAsync returning Resource Not Found HOT 1
- v3 SDK - WithPagination with token missing? HOT 1
- Timeline for v3 HOT 5
- Problem using Cosmos Resource Tokens HOT 1
- I'm going for EF Core 3.1 for Cosmos Db mapping. Did I miss something? HOT 4
- Query execution metrics HOT 1
- Customize the CosmosEntityName property to avoid data migration HOT 1
- WithPagination - have I can repeat my query?
- Failing on unit tests when calling ToListAsync()
- [FEATURE][QUESTION] support for geospatial queries?
- Exception: The input authorization token can't serve the request.
- Error because constructor is missing for the CosmosStoreTrigger extension for azure functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmonaut.