Thanks for the reply.

[of 100k+ items, you're likely doing something wrong anyways]

so I have to do a heavy query 
I can't use limit and you know I've to do the query :)
I avoid memory leak getting the cursor like that

$data = array();
$db = Zend_Registry::get('db');
$stmt = $db->query($query);
while ($row = $stmt->fetch()) {
    $data[] = $row;
}
// $content =  Zend_Json::encode($data);


I don't think to do someting wrong imho
if you know a better approach well
I'll be very pleased to know it :)

-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/json-encode-json-decode-vs-Zend-Json-encode-Zend-Json-decode-tp3080647p3082611.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to