3 ms·
Try making an apples to apples comparison. You neglected to write the SELECT, which would typically not be as simple as "SELECT * from post". You neglected to
by mypalmike 5y ago
Try making an apples to apples comparison.
You neglected to write the SELECT, which would typically not be as simple as "SELECT * from post".
You neglected to write the code to iterate over the results, which is trivial in the ORM version. In the SQL version it requires cursors and the error-prone manual mapping of positional data to named data.
- inshadows 5y agoBullshit. I don't need to use cursor with Python's sqlite3 module if I use the shorthand API exported by the module. I can write abstractions in Python. But I don't need to write shitty abstractions like the one for filtering.