Comments (3)
It's save for multiple goroutines. we'll improve the documentation.
from driver-go.
DB is a database handle representing a pool of zero or more underlying connections.
It's safe for concurrent use by multiple goroutines.
根据官方文档Open之后的*DB应该是可以在任意多协程使用的。这与本项目中
如果客户想要用多个goroutine并发访问TDengine, 那么需要在各个goroutine中分别创建一个sql.Open对象并用之访问TDengine
是矛盾的。
大佬 最后是怎样解决,多线程,并发插入,查询这种情况,连接没有得到释放的问题
from driver-go.
DB is a database handle representing a pool of zero or more underlying connections.
It's safe for concurrent use by multiple goroutines.
根据官方文档Open之后的*DB应该是可以在任意多协程使用的。这与本项目中
如果客户想要用多个goroutine并发访问TDengine, 那么需要在各个goroutine中分别创建一个sql.Open对象并用之访问TDengine
是矛盾的。
大佬 最后是怎样解决,多线程,并发插入,查询这种情况,连接没有得到释放的问题
最后没敢用,还是用的influxdb,社区有个集群版,够用了
from driver-go.
Related Issues (20)
- 当查询频率过快时 报runtime: name offset base pointer out of range的错误 HOT 6
- 连接池 bug HOT 8
- af接口锁释放问题 HOT 4
- 3.0.3.1 [0x11e] Version not compatible HOT 1
- 有 gorm 这类框架开发支持么 HOT 2
- TDEgine版本2.0.2.1 , 在linux试了很多个版本的driver-go都无法编译通过。 HOT 1
- 在ubuntu子系统下使用静态编译报错:/usr/bin/ld: cannot find -ltaos
- 在Macos系统下链接错误 HOT 2
- "Sync leader is unreachable" happend in my tdengine client HOT 1
- golang driver 怎么能支持smlChildTableName。配置在客户端的/etc/taos/taos.cfg 管用吗? HOT 1
- 需要对 wrapper.TaosConnect 返回的连接做个连接池优化吗?
- go test -race 报错 HOT 1
- 请问dsn连接字符串都可以设置什么参数? HOT 2
- 为啥go的Schemaless写入被标注为deprecated
- 3.1.0.0: tcp连接多次运行query失败,restful和ws连接正常 HOT 4
- v3.1.0.0: 客户端taosRestful访问,database/sql Scan timestamp列,时间异常 HOT 2
- invalid DSN: network address not terminated (missing closing brace) HOT 4
- runtime error: makeslice: len out of range HOT 2
- restful driver, not support Query(stmt, args...) HOT 1
- can't run on macbook m2 pro HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driver-go.