Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3351952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:58:15+00:00 2026-05-18T01:58:15+00:00

I have the following set-up: Zend Framework 1.10.8 database adapter: pdo_mysql memory limit: 128MB

  • 0

I have the following set-up:

  • Zend Framework 1.10.8
  • database adapter: pdo_mysql
  • memory limit: 128MB
  • table type: myisam
  • table size: 4 MB
  • number of records: 22.000
  • number of columns: aprox. 70

I want to select everything from the table, which should be no problem at all:

$table = new Application_Model_DbTable_Foo();
$everything = $table->fetchAll();

Doing this I run into a “memory exhausted” problem.

I wrote a script using PDO_MYSQL without Zend Framework and the memory usage was fine and it worked all right.

So I must be missing something here. Any hint highly appreciated. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:58:16+00:00Added an answer on May 18, 2026 at 1:58 am

    22k rows alone can a significant amount of data, depending on what your script is doing. If increasing the memory limit isn’t an option, you might want to try this. Grab ‘chunks’ of rows. You can do this with a LIMIT. Set your page size to something that fits in memory and then process that. Keep increasing your OFFSET until you’ve processed all your data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To use where in a MySQL table row update in Zend Framework I have
I have the following configuration set in my factories.yml file... all: mailer: param: transport:
I have the following set up: I have 4 packages: root/src/terminal - has some
I have 3 following classes: public class BaseProperty1{ public string Property1 {get; set;} }
I have the following class: public class Movie { string Name get; set; string
I have the following code: LinkedHashMap<String,ArrayList<String>> h; Set set = h.entrySet(); Iterator i =
I have the following php code using the codeigniter framework $this->form_validation->set_rules('money', 'Money', 'integer|required|xss_clean'); It
I have the following table: Id ParentId Weight 1 1 0 2 1 10
I am trying to add some administration scripts to a Zend Framework project, that
I have added following lines into php.ini [XDebug] zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.