Skip to content

咨询个问题:apijson如何支持数据库连接池?多谢啦。(看源码都是直接使用jdbc) #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
healthybaobao opened this issue Mar 22, 2021 · 4 comments

Comments

@healthybaobao
Copy link

apijson对多用户压力场景如何支持?我理解,一旦并发的请求多了会导致后端数据库测连接被占用完,特此请教您,咋们apijson目前对于高并发场景下是如何支持?非常感谢。

@TommyLemon
Copy link
Collaborator

TommyLemon commented Mar 22, 2021

已适配连接池
#153

@healthybaobao
Copy link
Author

非常感谢。另外,咨询一下,apijson后续有没有计划支持“创建数据库,自定义字段”这样的特性?多谢您啦。

@TommyLemon
Copy link
Collaborator

TommyLemon commented Apr 8, 2021

不会支持创建数据库、改表结构这种危险的功能,建议用 MySQLWorkbench, DataGrip, Navicat 等数据库工具。
不过已经提供了字段插件 https://github.com/APIJSON/apijson-column 来支持 字段名映射 和 !key 反选字段。

@TommyLemon
Copy link
Collaborator

TommyLemon commented Jun 21, 2021

新增数据源关键词 @Datasource,可由业务完全自定义
https://github.com/Tencent/APIJSON/releases/tag/4.7.0

新增 连接池及多数据源 Demo(Druid + HikariCP)
https://gitee.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants