<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>mysql</anon>
  </categories>
  <description>phpからmysqlを使う際に、拡張モジュールであるmysqliを使って mysqlサーバとの接続、クエリ実行を行う場合 コネクションプールを貼る事ができます。 公式ドキュメントによると、phpでのコネクションプールはphp5.3から対応されています。 PHP: mysqli 拡張モジュールでの持続的接続 - Manual コネクションプールを貼ることによって、クライアント接続毎に新たにコネクションを張り直す必要がなく、再利用することができます。 実際には、mysqliのインスタンス生成時のホスト名の先頭に 「p:」をつければ自動的にやってくれるようです。 $mysqli = new mysq…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2017%2F01%2F23%2F004240&quot; title=&quot;php mysql でコネクションプールを貼る - kakts-log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-23 00:42:40</published>
  <title>php mysql でコネクションプールを貼る</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/2017/01/23/004240</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
