MySQL vs SQLite on various devices - percona.com

Post on 27-Dec-2016

217 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

MySQL SQLite

Connection handling Application/API

Authentication N/A

Threads handling N/A (Application)

Query cache N/A (application)

Parser

Optimizer

Storage engine Backend

InnoDB storage engine SQLite backend

Buffer pool Page cache

B+Tree indexes B*Tree index

File / Partitions Database file

MySQL SQLite

Connecting to a separate process Same-process library / API

Full blown SQL with SELECT/INSERT/UPDATE/DELETE

Subqueries support

Transation support

Cross-database queries support

Static types Dynamic types

GPL license Public domain license

MySQL SQLite

PK: SELECT * FROM test1 WHERE id=$i

44k QPS 22K QPS

Round trip: SELECT 1

97k QPS 50k QPS

Memory on the start

147Mb 39Mb

Memory with data imported

147Mb 60Mb

Metric MySQL SQLite

Features Rich Rich

Portability Low High

Footprint High Low

Concurrency Great OK

Networking Yes No

Big data Yes No

Embedding Ok Great

License GPL Public domain

http://altinity.com

top related