Anže :python: on Nostr: Any idea why PostgreSQL is this much slower compared to SQLite and MySQL? This is on ...
Any idea why PostgreSQL is this much slower compared to SQLite and MySQL?
This is on Ubuntu 24.04, connecting through Django and I've tried both psycopg and psycopg2, but the result is the same: ~200 requests per second with Postgres compared to ~2000 with SQLite or MySQL.
Published at
2024-06-04 10:00:20Event JSON
{
"id": "da87ac4b1e4e798a8ca4a61947ba67883cce207b1f2c65543d75363a508877e2",
"pubkey": "1b7a73cb99ab2f1eafa69223e6e9ee453d3559b67614f08e6197e62dec1a3252",
"created_at": 1717495220,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/anze3db/statuses/112557766800166792",
"activitypub"
]
],
"content": "Any idea why PostgreSQL is this much slower compared to SQLite and MySQL?\n\nThis is on Ubuntu 24.04, connecting through Django and I've tried both psycopg and psycopg2, but the result is the same: ~200 requests per second with Postgres compared to ~2000 with SQLite or MySQL.\n\nhttps://cdn.fosstodon.org/media_attachments/files/112/557/766/709/204/795/original/0afcdbb686c466a4.png",
"sig": "d66513801793c6c66a06544b851dac431fedf88b177de439fa9b0eb8e35a7a7e506606c86ad380fd177b17e4ec101f1c5ce6903816e13eefe98515dfcd4b4a64"
}