eZFind2 index script fetch only objects not in IndexExclude

Author Message

Denitsa M.

Tuesday 12 May 2009 8:34:17 am

Hi,

I had wondered for some time why does index script do subtree call with no regard for classes that are excluded in settings (ezfind.ini) and then in solr scripts simply skip to index the current iteration object if it is of one of those listed classes ... Isn't in more efficient to iterate only through objects that will be indexed indeed? For a database of 150-200 000 objects, if 50000 objects should not be indexed, this means that I will have memory and CPU power engaged pointlessly into fetching, caching and looping through 50000 objects that should be "skipped" ... This is not problem for small databases at the scale of below 60000-80000 objects, but larger?

Thanks,
Denitsa.

Iguana IT - http://www.iguanait.com

Nicolas Pastorino

Tuesday 12 May 2009 11:25:40 pm

Hi Denitsa,

Good catch indeed. Would you mind filing a bug report on http://issues.ez.no/ezfind ?

Thanks in advance,
Best Regards,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Denitsa M.

Wednesday 13 May 2009 2:59:49 am

Hi, Nic,

thanks for suggestion, I followed your advice and reported here http://issues.ez.no/IssueView.php?Id=14903&activeItem=1 :)

Deni

Iguana IT - http://www.iguanait.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:31:04
Script start
Timing: Jan 18 2025 04:31:04
Module start 'layout'
Timing: Jan 18 2025 04:31:04
Module start 'content'
Timing: Jan 18 2025 04:31:04
Module end 'content'
Timing: Jan 18 2025 04:31:04
Script end

Main resources:

Total runtime0.0234 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.3047152.6563
Module start 'layout' 0.00900.0042 741.960939.5078
Module start 'content' 0.01320.0078 781.468889.3984
Module end 'content' 0.02100.0023 870.867234.3047
Script end 0.0233  905.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.004318.2292140.0003
Check MTime0.00135.4015140.0001
Mysql Total
Database connection0.00114.767810.0011
Mysqli_queries0.004418.837430.0015
Looping result0.00000.077610.0000
Template Total0.00198.110.0019
Template load0.00125.239310.0012
Template processing0.00072.820710.0007
Override
Cache load0.00094.045310.0009
General
dbfile0.00021.013480.0000
String conversion0.00000.046940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs