TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Database drivers: Naughty or nice?

94 pointsby ctc24over 2 years ago

14 comments

counttheforksover 2 years ago
This article would be way more useful if it named the offending drivers and linked to relevant github issues. As is this is just a set of useless curiosities.<p>I came in wanting to check if any of the drivers I use were affected by any of the bugs they found. No idea!
评论 #33957638 未加载
评论 #33961141 未加载
评论 #33960003 未加载
kardianosover 2 years ago
SQL Database drivers have so much in common, but each represent schema and data table(s) differently on the wire. Some handle cancellation within the protocol, others require a work around (like another DB connection that issues a KILL command). TDS (Microsoft Server) is actually one of the better protocols and better documented protocols (due in large part to historical court orders) out there.<p>My takeaway is that compact schema streaming data is not a well developed field. I think we can do better. Not only that, but developing both such a schema, protocol, and associated tooling is key to significantly better data-centric applications from end to end, not just the database.
评论 #33959083 未加载
omgbearover 2 years ago
I&#x27;ve had such problems with the official AWS redshift JDBC driver -- Mostly around memory usage compared to the PG8.4 driver that also works. But also,<p>- Much slower to cancel queries<p>- Still reading and buffering most of the result after canceling.<p>- Weird escaping issues<p>Glad to be done with that.
评论 #33958902 未加载
tlockeover 2 years ago
Hello, maintainer of the pg8000 driver for PostgreSQL here. I&#x27;m keen to know of any problems you had if you used pg8000. Thanks! <a href="https:&#x2F;&#x2F;github.com&#x2F;tlocke&#x2F;pg8000" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tlocke&#x2F;pg8000</a>
评论 #33961508 未加载
评论 #33966140 未加载
评论 #33959094 未加载
hermitdevover 2 years ago
I remember dealing with DataDirect on Linux more than 10 years ago. I don&#x27;t recall the specifics, but under certain error conditions, either the ODBC driver we were using or the driver manager would simply do `exit(0)` with no errors logged anywhere. That was a &quot;fun&quot; one to solve...
wswopeover 2 years ago
Speaking as a professional data yeeter who has been bit by weird driver issues in the past, I’ll go against the grain to say that I found this really helpful as a checklist to pattern match against when troubleshooting, even without calling out specific drivers. Thanks for sharing!
georgewfraserover 2 years ago
The world would be a better place if database drivers were completely abandoned as a way for clients to connect to databases. A standard API, implemented by multiple vendors, is a vastly preferable solution. Arrow Flight is an example of this.<p><a href="https:&#x2F;&#x2F;arrow.apache.org&#x2F;blog&#x2F;2019&#x2F;10&#x2F;13&#x2F;introducing-arrow-flight&#x2F;" rel="nofollow">https:&#x2F;&#x2F;arrow.apache.org&#x2F;blog&#x2F;2019&#x2F;10&#x2F;13&#x2F;introducing-arrow-f...</a>
评论 #33959210 未加载
评论 #33960093 未加载
评论 #33959313 未加载
aynycover 2 years ago
I used to work with Sybase, and its JDBC driver was pure madness. There were times where the same query on same data would return different results. Never figured out why. We ended use its ODBC driver for reporting instead.
janciover 2 years ago
It is the same shitshow in JDBC land.
eskaover 2 years ago
I remember something about mysql not treating localhost as local, but 127.0.0.1 would. This led to very different performance. (Long ago, not sure about details)<p>Also surprised by libraries not using more efficient protocols although they were defined.<p>Compression also doesn’t seem to be a thing.
hobsover 2 years ago
Found out recently that utilizing Snowflake from Spark that you still cant represent higher than int32 normally, driver doesn&#x27;t support it.<p>I think its in the works but it makes me laugh that the big data folks never really cared about a number bigger than 2.4b or so.
评论 #33965647 未加载
tabtabover 2 years ago
Why isn&#x27;t there an HTTP protocol like &quot;Query:&quot; or &quot;SQL:&quot; such that drivers and ODBC&#x2F;JDBC are not required to talk to a typical database? In other words, a database web service standard. Here&#x27;s a sample of what the XML could look like:<p><a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Database&#x2F;comments&#x2F;p21u5d&#x2F;standard_query_web_service_draft_proposal&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Database&#x2F;comments&#x2F;p21u5d&#x2F;standard_q...</a>
评论 #33969027 未加载
评论 #33966184 未加载
评论 #33962048 未加载
VWWHFSfQover 2 years ago
without actually naming the drivers in question so that people can learn from it this is pretty pointless.
评论 #33959865 未加载
akdor1154over 2 years ago
I will presume that at least half of these are issues with the Snowflake connectors until told otherwise.. those guys have a great core product, but the connectors are pretty dodgy in many cases I&#x27;ve seen.<p>Telling as well that DuckDB fixed your issue in a couple of days.. had snowflake support even demonstrated technical understanding of your request in that time? I guess it doesn&#x27;t really matter if it takes them six months or more to fix the connector bugs anyway.