# Microsecond-level SQL query latency with libSQL local replicas

DevFeed: [Microsecond-level SQL query latency with libSQL local replicas](<https://devfeed.tech/articles/microsecond-level-sql-query-latency-with-libsql-local-replicas-6001.md>)

Original publisher: [Read original article](<https://turso.tech/blog/microsecond-level-sql-query-latency-with-libsql-local-replicas-5e4ae19b628b>)

Author: Pekka Enberg

Published: 2023-08-08T00:00:00Z

Content type: article

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [libSQL](<https://devfeed.tech/topics/libsql.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [latency](<https://devfeed.tech/tags/latency.md>), [libsql](<https://devfeed.tech/tags/libsql.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [replication](<https://devfeed.tech/tags/replication.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

## AI overview

This article discusses achieving microsecond-level SQL query latency by embedding a libSQL database in an application through local replicas. It contrasts this approach with the client-server model used by databases such as PostgreSQL and MySQL, and includes a note that the referenced version of Turso is outdated.

## Source excerpt

The fastest access to your database is when your database is embedded in your application. However, most contemporary databases such as PostgreSQL and MySQL use a client-server model where the client...