4 ms·
Depends of the work you have to do. If you code a website, fast api and django, the two most popular framework to do so, heavily rely on them to make you produ
by BiteCode_dev 4y ago
Depends of the work you have to do.
If you code a website, fast api and django, the two most popular framework to do so, heavily rely on them to make you productive.
- bravura 4y agoIf you code a website, your speed issues probably come from the database layer. Not your Python.
- FridgeSeal 4y agoWhat are you doing to your database? Lol Most databases I’ve dealt with will happily outstrip Python for a good chunk of the common queries.
- DougMerritt 4y agoMeasuring database speed is ultimately I/O bound, measuring a language's speed is typically CPU-bound.
- Doxin 4y agoFor sure, but django for instance is really good at turning something that ought to be one query into N+1 queries.
- fud101 4y agohow do you deal with this?
- WhatTheFlak 4y agoDon't abuse the damn ORM. And write SQL directly for medium complexity queries.
- Doxin 4y agoIn my experience? optimize things once it turns out to be a problem. It's not easy though and one of the many reasons I don't love the django ORM.