#1240 new
dleffler

Feature request: make db backup/restore handle LARGE files

Reported by dleffler | November 22nd, 2014 @ 02:39 PM

Currently, the expFile::dumpDatabase(), expFile::parseDatabase() & expFile::restoreDatabase() all work with the entire database/eql file at once (unless the table selection is small) which may exhaust available memory (esp. on ecommerce sites). We need to fix this by:

  • Change the file($filename) calls in parseDatabase() & restoreDatabase() to use fgets($filename) and handle the .eql file line by line rather than all at once.
  • Change the dumpDatabase to incrementally output/write the .eql file instead of creating an variable of the entire .eql file and then echoing/writing it.

Comments and changes to this ticket

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Pages