Skip to content
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

在handler中创建数据库链接是否会有性能问题 #6

Open
chaomoyule opened this issue Jan 29, 2023 · 1 comment
Open

在handler中创建数据库链接是否会有性能问题 #6

chaomoyule opened this issue Jan 29, 2023 · 1 comment

Comments

@chaomoyule
Copy link

如题,看实例代码,所有的创建连接动作都是放在handler中,是否有性能问题。
函数计算场景下是否有连接服用的可能。

@heimanba
Copy link

如题,看实例代码,所有的创建连接动作都是放在handler中,是否有性能问题。 函数计算场景下是否有连接服用的可能。

def initializer(context):

initializer函数可以做链接复用
image

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