Namespaces for Multi tenancy in Cloud Firestore
Asked Answered
A

2

6

How do we set a different database / namespace in Firestore? This would be helpful in building multi-tenancy SaaS products.

Anchoress answered 12/10, 2017 at 4:15 Comment(0)
P
2

Based on the recent announcements by google, it looks this will become a thing:

Cloud Firestore, currently available in beta, is the next generation of Cloud Datastore, and offers compatibility with the Datastore API and existing client libraries. With the newly introduced Datastore mode on Cloud Firestore, you don’t need to make any changes to your existing Datastore apps to take advantage of the added benefits of Cloud Firestore. After general availability of Cloud Firestore, we will transparently live-migrate your apps to the Cloud Firestore backend, and you’ll see better performance right away, for the same pricing you have now, with the added benefit of always being strongly consistent. It’ll be a simple, no-downtime upgrade. Read more here about Cloud Firestore.

Petitionary answered 26/7, 2018 at 0:8 Comment(0)
P
5

It's something being considered, but no firm plans yet.

The current method would require you to create separate projects. A collection name scheme might be possible, but you'll run into composite index limits for the project.

Percival answered 12/10, 2017 at 4:38 Comment(1)
Considering datastore has out of the box support for namespaces, I'm hoping this will be supported at some point.Anchoress
P
2

Based on the recent announcements by google, it looks this will become a thing:

Cloud Firestore, currently available in beta, is the next generation of Cloud Datastore, and offers compatibility with the Datastore API and existing client libraries. With the newly introduced Datastore mode on Cloud Firestore, you don’t need to make any changes to your existing Datastore apps to take advantage of the added benefits of Cloud Firestore. After general availability of Cloud Firestore, we will transparently live-migrate your apps to the Cloud Firestore backend, and you’ll see better performance right away, for the same pricing you have now, with the added benefit of always being strongly consistent. It’ll be a simple, no-downtime upgrade. Read more here about Cloud Firestore.

Petitionary answered 26/7, 2018 at 0:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.