How does the handling of metadata in PDO result sets contribute to memory consumption compared to mysqli?
When handling metadata in PDO result sets, each row fetched from the database includes additional metadata information, which can contribute to increased memory consumption compared to mysqli. To reduce memory usage, you can disable the fetching of metadata in PDO by setting the `PDO::ATTR_FETCH_TABLE_NAMES` attribute to false.
// Disable fetching of metadata in PDO to reduce memory consumption
$pdo = new PDO($dsn, $username, $password);
$pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, false);