3 ms·
> Java's database drivers massively lag behind (e.g. there's still no good async support for most of them), Very Hard Disagree. JDBC is pretty amazing actually
by lenkite 3y ago
> Java's database drivers massively lag behind (e.g. there's still no good async support for most of them),
Very Hard Disagree. JDBC is pretty amazing actually. Thats why you find so many Database tools and wizards written in Java as opposed to Rust.
Regarding async - With Java 19 virtual threads , you have newer versions of JDBC drivers support async with none to minimal changes. Example: https://medium.com/oracledevs/introduction-to-oracle-jdbc-21c-driver-support-for-virtual-threads-189b918c56f4 https://medium.com/oracledevs/introduction-to-oracle-jdbc-21...
I am very, very glad that human civilisation standardised on one system for gears instead of every manufacturer making their own special snowflake.
- lmm 3y ago> Very Hard Disagree. JDBC is pretty amazing actually. Thats why you find so many Database tools and wizards written in Java as opposed to Rust. Java is much older and bigger than Rust. I don't think its level of database tooling is noticeably better than other big languages with less of a standard database API (e.g. Python). > Regarding async - With Java 19 virtual threads , you have newer versions of JDBC drivers support async with none to minimal changes. So it's only taken what, 15 years, and even then it's only been done because they found a way to make it happen without having to actually change the API (which it remains to be seen how well that actually works in practice - I'm pretty skeptical because other platforms have tried and failed with that approach).
- dragonwriter 3y ago> I don't think its level of database tooling is noticeably better than other big languages with less of a standard database API (e.g., Python) DB-API 2.0 (PEP 249) is very much a standard database API.