I'm having trouble with users exporting csv feeds with lots of results. I've looked around and it seems a recurring problem with no easy solution.

I wish I could have an option not to theme fields so I would increase performance, but even this wouldn't solve the problem completely.

I thing if we had a configurable warning for large views it will be very helpful for users to understand what's going on.

Example: in a view configuration admins will override limit to csv export and configure a warning for > 10000 rows, and a custom error message like:

"you are about to export a large file. This may take a wile to complete. Please be patient, or try to shorten your search. If you get an error, that probably means you've reach a system limit. Please contact technical support"

If a user tries to csv export a result with more than 10000 a javascript popup would warn the configured message.

I can try to do this for myself, but I think it would be a nice general addition

Comments

Miguel.Andrade’s picture

In this thread http://drupal.org/node/114115#comment-752017

The proposed solution includes

   // Output immediately instead of using $output .=
    print implode(',', $values) . "\r\n";
    // Flush immediately so the user can start downloading and gets an immediate response.
    @ob_flush(); @flush();
   // This flushes the node_load static $nodes array() cache, fixing the memory limit problem.

This also seams a good feature. Would it be possible to implement?

steven jones’s picture

Status: Active » Closed (duplicate)