title: Memory for large data in PDO
body: <p>PDO seems like a little tricky, but I have a large database and I'm getting this error,</p>
  
  <pre><code>Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 256 bytes)
  </code></pre>
  
  <p>When using,</p>
  
  <pre><code>fetchAll()
  </code></pre>
  
  <p>What is the best way to solve it?</p>