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
Shard Key would like to use servicePath as an alternative to [country] in the ↑ document.
・entities: _id.servicePath
・csubs: servicePath
・registrations: servicePath
However, "PATCH /v2/subscriptions/{subscriptionId}" with Fiware-ServicePath header gave an InternalServerError.
Error Message
Why is the servicePath not included in the query to the csubs collection? (Because it is always unique by _id?).
Also, do you plan to include servicePath in queries in the future?
Version
Orion: 3.7.0
MongoDB: 4.4
The text was updated successfully, but these errors were encountered:
Why is the servicePath not included in the query to the csubs collection? (Because it is always unique by _id?).
Exactly: MongoDB ensure sub _id are unique by construction, so we don't need to include servicePath in the query (keeping the query as simple as possible).
Also, do you plan to include servicePath in queries in the future?
No... until you have raised this issue :) It could make sense, but before confirming that I'd like to know if you have evaluated other alternative shard keys and why did you chose servicePath among these alternatives, please.
Exactly: MongoDB ensure sub _id are unique by construction, so we don't need to include servicePath in the query (keeping the query as simple as possible).
I'm just remember query simplicity is not the only reason...
Changing the behaviour to include service path in the query would involve a backward compatibility break in the following:
Fiware-ServicePath header is ignored in GET /v2/subscriptions/{id} and GET /v2/registrations/{id} operations, as the id fully qualifies the subscription or registration to retrieve.
Hi, We are trying to configure the MongoDB to which we are connecting with range-based sharding, as in the architecture in the following document.
https://www.mongodb.com/docs/v4.4/tutorial/sharding-segmenting-data-by-location/
Shard Key would like to use servicePath as an alternative to [country] in the ↑ document.
・entities: _id.servicePath
・csubs: servicePath
・registrations: servicePath
However, "PATCH /v2/subscriptions/{subscriptionId}" with Fiware-ServicePath header gave an InternalServerError.
Error Message
Why is the servicePath not included in the query to the csubs collection? (Because it is always unique by _id?).
Also, do you plan to include servicePath in queries in the future?
Version
Orion: 3.7.0
MongoDB: 4.4
The text was updated successfully, but these errors were encountered: