Drupal 6 如何与 MySQL 进行连接和事务交互?

发布于 2024-08-30 06:24:48 字数 153 浏览 3 评论 0原文

Drupal 6 如何与 MySQL 进行连接和事务交互?是否使用连接池?交易如何处理?这些事情是由 Drupal 管理的,还是由 MySQL 处理的?

我在网络和 Stack Overflow 中进行了大量搜索,但主要是,我只找到了调整 Drupal 性能和扩展需求的文章。

Hows does Drupal 6 interact with MySQL for connections and transactions? Does connection pooling get used? How are transactions handled? At what level are these things managed by Drupal vs being handed off to be handled by MySQL?

I did a good amount of searching on the web and within Stack Overflow, but mainly, I only found articles for tweaking Drupal performance and scaling needs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掩于岁月 2024-09-06 06:24:48

来自 Acquia 支持团队,

连接数会根据活动而有所不同,但您可以按照此处提到的方式将其归结为每个用户请求一个请求。 Drupal 中没有连接池或持久连接的概念。

有时它有助于掌握
数据库抽象层(如何
Drupal 与数据库对话)和
引导过程(参见
http://api.drupal.org/api/drupal/includes --bootstrap.inc/6)
更详细地了解它是如何进行的
有效。

From Acquia support team,

The number of connections would vary based on activity but you can boil it down as you mention here, one request per user request. There is no concept of connection pooling or persistent connections in Drupal.

Sometimes it helps to get a handle on
the Database Abstraction Layer (how
Drupal talks to the database) and the
bootstrap process (See
http://api.drupal.org/api/drupal/includes--bootstrap.inc/6)
for a more detailed walk of how it
works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文