Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthortom
    • CommentTimeNov 1st 2007
     
    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
    • CommentTimeNov 1st 2007
     

    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
    • CommentTimeNov 2nd 2007
     

    Ok, that worked!

    Thanks again! :)

Add your comments
    Username Password
  • Format comments as