Suppose that you have a query and you know exactly how many results it will return and length of every column, e.g. 1M records int `id`, char(100) `uid`
.
Is there a way to know in advance how much memory will PHP need to allocate for this associative array?