Migrate the application database to a production database
You’ll need to migrate the application database that ships with Metabase (an H2 database) to a production SQL database. The application database stores all of your users, questions, dashboards, and other Metabase application data.
The reason Metabase ships with the H2 database out of the box is to make it easy to get Metabase up and running on your machine. But the H2 database is not suitable for running Metabase in production.
We recommend you migrate to PostgreSQL, MySQL, or MariaDB.
There's no one-size fits all. You might have a large database than others, but perhaps you only have 2 active users, while someone with 3GB of data might have 500 active users.
The scaling guide I already linked tries to explain how to tweak some parts of Metabase.