CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • EXPORT_ROW_COUNT in Export.php
Pages: [1]

Author Topic: EXPORT_ROW_COUNT in Export.php  (Read 1808 times)

pbarmak

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 3
  • CiviCRM version: 3.3.5
  • CMS version: Pressflow 6.19
  • MySQL version: 5.1
  • PHP version: 5.2.10
EXPORT_ROW_COUNT in Export.php
July 07, 2011, 04:05:10 pm
Hey all,
Not sure if this is the right forum, but I had a quick question - I was looking into Export.php (in CRM/Export/BAO) for an unrelated query issue/bug, and I noticed EXPORT_ROW_COUNT is set to 100.  That constant is used in the queries to define the number of rows returned in the LIMIT clause.

Was there a good reason this was set to 100 rows instead of something larger?  It seems to cause more repeating MySQL queries than needed, especially on larger export sets (and each is a semi-heft query: 29-table join from what I see, but that's a separate issue).

It's not a huge deal, but our folks tend to export a lot ... I'm tempted to make that constant larger, but I'm wondering if there is a good reason not to touch it - like php memory issues?  Something else?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: EXPORT_ROW_COUNT in Export.php
July 07, 2011, 11:05:38 pm

In recent versions (at least 3.4.x series), we've bumped that constant to 10000

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • EXPORT_ROW_COUNT in Export.php

This forum was archived on 2017-11-26.