Show HN: 1M rows/s from Postgres to Python
11–20 of 94 posts
Re: Show HN: 1M rows/s from Postgres to Python
#12actually what i also found is that python wasn't slow in these cases but it was slow when you do map operations on the lists and reoder the data or convert it to other structures.
Re: Show HN: 1M rows/s from Postgres to Python
#13Re: Show HN: 1M rows/s from Postgres to Python
#14asyncpg was developed by @redcrowbar and me. Ask us anything ;)
Re: Show HN: 1M rows/s from Postgres to Python
#15Isn't this just hobbling Go so you can beat it? Doesn't seem like something done "for fairness" at all.
Re: Show HN: 1M rows/s from Postgres to Python
#16asyncpg was developed by @redcrowbar and me. Ask us anything ;)
Re: Show HN: 1M rows/s from Postgres to Python
#17> For fairness, all tests were run in a single-thread (GOMAXPROCS=1 for Go code) in async mode. Isn't this just hobbling Go so you can beat it? Doesn't seem like something done "for fairness" at all.
For benchmarks, we didn't want to complicate things with multi-process setup, the idea was to compare the raw performance of all drivers.
Re: Show HN: 1M rows/s from Postgres to Python
#18would be cool to also make jmh tests against jdbc and async pg on java. actually what i also found is that python wasn't slow in these cases but it was slow when you do map operations on the lists and reoder the data or convert it to other structures.
Pull requests to https://github.com/MagicStack/pgbench are welcome :-)
Re: Show HN: 1M rows/s from Postgres to Python
#19asyncpg was developed by @redcrowbar and me. Ask us anything ;)
Do you have any numbers on queries that return millions of rows? If it's still fast, asyncpg could be nice for some ETL-type workloads.