In the new Console in a Firebase Project, in Project Setting session in the Database tab there is the label Databases.
However I didn't find any action to create more than 1 database inside the same Firebase Project.
Is it possible to create more databases inside the same Firebase Project?
Multi-database is a new feature that allows you to create multiple database instances.
To get started you need to be in the Blaze plan. In the data viewer you can click the triple dot icon to create new database instances:
To access data from a secondary instance you use an absolute URL when creating a database instance.
const app = firebase.initializeApp({
// use your main config
databaseUrl: "https://multi-db.firebaseio.com/"
});
const db1 = app.database(); // This is the default DB
const db2 = app.database("https://multi-db501c7.firebaseio.com/");
Since these databases are in the same project they share the same Authentication session.
Also each database instance has its own set of security rules and the databases can handle different structures.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With