Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthortom
     
    Hi,

    When I'm fetching large collections from my databases, the action seems to take too long. No data gets sent for a couple of seconds, so the webbrowser displays a file download dialog instead of waiting for the response to complete.

    Any ideas on how to circumvent this behaviour?

    I've already increased the script timeout value in my php5.ini, but with no success.

    Regards,

    Tom
    •  
      CommentAuthorbermi
     

    If you're fetching large collections in memory it is possible that you hit the default memory limit for PHP (usually 8MB).

    You can circumvent this behaviour by removing or increasing the memory limit in your environment settings by adding:

    ini_set('memory_limit', -1);
    

    On testing environments the memory limit is removed, but on production that decision is left to developers.

    Regards,

    Bermi

    • CommentAuthortom
     

    Ok, that worked!

    Thanks again! :)