NVMe VPS in Moldova for small services on SQLite
Moldovan plans are inexpensive, and people often run small projects on them: a Telegram bot that books appointments, a tracking tool for their own team, a simple website with an enquiry form. Many of these projects have no separate database server. They use SQLite instead, a database in a single file built right into the program. For a light load that is a sensible choice, and SQLite is exactly the kind of database where a fast disk matters more than it does for "real" database servers.
Why SQLite depends so much on the disk
SQLite has no server of its own with a large cache in memory. Every time the bot saves a customer's booking, the library writes the change to the file and asks the system to confirm that the data really is on disk. By default there are several such confirmations per transaction. At one write a minute you will not notice this anywhere. When the bot sends reminders to five hundred customers and marks each message as sent, on a slow disk it starts waiting for itself.
The second quirk is that only one process can write to an SQLite database at a time. The others wait. The faster the disk confirms a write, the shorter the queue and the less often you see database is locked in the logs. On NVMe a confirmation takes a fraction of a millisecond, so a single SQLite database can handle hundreds of writes per second. For a small service that is far more than enough.
Two lines that make SQLite several times faster
Right after opening the database, run:
PRAGMA journal_mode=WAL;PRAGMA synchronous=NORMAL;
WAL mode writes changes to a separate log and lets you read the database while it is being written to, so the bot stops hanging when someone is looking at statistics at the same moment. The synchronous=NORMAL setting in WAL mode cuts the number of write confirmations, and the database still does not get corrupted in a crash: at worst you lose the last transaction if the power goes. For a booking bot that is acceptable; for anything that tracks money, keep FULL.
One more useful setting is PRAGMA busy_timeout=5000;. It makes a second process wait up to five seconds instead of failing immediately with a lock error.
A backup that will not corrupt the database
A common mistake is to copy the database file with a plain cp or an archiver while the program is running. If a write is happening at that moment, the copy can be broken, and you will only find out when you try to restore it. The right way is to use SQLite itself:
sqlite3 bot.db ".backup /backup/bot-$(date +%F).db"
The command produces a consistent copy even while the program is working. Put it in cron once a day and send the result to another server. If you need a copy in near real time, there are tools that continuously ship the WAL log to object storage. More about the bots themselves is on VPS for a Telegram bot, and about Python projects on VPS for Python.
When it is time to move off SQLite
Switch to PostgreSQL or MySQL if several separate servers write to the database, if the file has grown to tens of gigabytes, or if several programs need to reach the data over the network. SQLite cannot work with a database on a network disk, and fast NVMe will not change that. As long as the service lives on one server, SQLite is simpler and more reliable than any separate database.
One detail about disk space. SQLite does not give freed space back on its own: if the bot deletes old records, the database file stays the same size. Once a month, at a quiet time, run VACUUM; so the database rewrites itself compactly. On NVMe this takes seconds even for a database of several gigabytes, while on a slow disk it can block writes for minutes. And keep an eye on the -wal file next to the database: if it has grown to hundreds of megabytes, some program is holding a long read open and stopping the log from being cleared.
Chisinau, rules and payment
Moldovan data centres are in Chisinau. From Bucharest it is usually 10 to 20 ms, from Vienna and Frankfurt around 30 to 50 ms, and from London 50 to 60 ms, but with some carriers the route goes through Romania or Germany and the latency is higher. For a bot this hardly matters, since it talks to Telegram's servers rather than to the user. Moldova is not in the EU and has its own personal data law, close to the European one. If your service processes data of people in the EU, GDPR still applies to you, and keeping that data in Moldova counts as a transfer outside the EU, so check that the provider's terms cover it. A Moldovan provider does not charge EU VAT; the Payment column in the table shows what each plan accepts. For comparison, look at NVMe VPS in Romania next door and the general overview of VPS in Moldova.