44

Are there any techniques or tools to work with SQLite on a medium size/traffic/concurrency DB environment?

RolandoMySQLDBA
185k34 gold badges327 silver badges541 bronze badges
asked Jan 3, 2011 at 21:15
1
  • If the motivation for this question (I know it's been ages) and the reason anyone else reading this question is to have a extremely light weight DB that you can run on your local machine in client/server mode the right answer is likely FirebirdSQL. Commented May 28 at 21:42

2 Answers 2

28

As stated before, sqlite is not a client-server application, and it is not built for highly concurrent operations.

Nevertheless, you can make it "sort of client-server", if you use ssh.

ssh user@host sqlite3 databasefile "select * from table"

works.

answered Jan 4, 2011 at 6:22
2
  • 1
    Is this considered "client-server" because you've encrypted the connection? Commented Jan 18, 2018 at 16:06
  • 5
    No, it is just because of a network between the machine which hosts the db and the machine accessing the db. Commented Jan 20, 2018 at 7:26
8

No, SQLite doesn't present a network endpoint - it is only accessible via the filesystem. It does support concurrent access from multiple processes on the same machine but at a very coarse-grained level (DML locks an entire table). So you could have a dozen Apache httpd processes all with a SQLite database on the local disk open, all doing SELECTs and it would work just fine. But really, it's the wrong tool for the job - I'd use Postgres in this scenario.

answered Jan 3, 2011 at 21:23
0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.