Object relations and big number of records

Author Message

Carlos Revillo

Sunday 01 June 2008 3:30:19 am

Hi.

I have a class, let's call it A, with about 15 attributes. One of this attributes is a relation of objects of another class, call it B. for this other class (B) i have about 40.000 records.

The problem begins when i have to edit an object of A class.
I mean, if for this attribute i choose "multiselect options". it takes too long to fill all the 40.000 records in the multiselect option.

If i choose select by browsing, it's very tedious for the editor to find the right object in about 800 pages of 50 records each one...

Do you know how can i filter the objects to relate? For more information, i can say that A class is a class with information about films, and B class is a class with actors information. So, what i want is to relate films with actors.

I wonder if is there any way to let the editors "search" for actors, and then choose the right ones in that search results. so, they won't need to search for actors page by page...

Any help would be appreciated. Thank you.

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 19 2025 02:36:33
Script start
Timing: Jan 19 2025 02:36:33
Module start 'layout'
Timing: Jan 19 2025 02:36:33
Module start 'content'
Timing: Jan 19 2025 02:36:35
Module end 'content'
Timing: Jan 19 2025 02:36:35
Script end

Main resources:

Total runtime1.5730 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2813152.6406
Module start 'layout' 0.00600.0027 741.921939.4766
Module start 'content' 0.00871.5625 781.3984402.4375
Module end 'content' 1.57130.0017 1,183.83598.1250
Script end 1.5729  1,191.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2406160.0002
Check MTime0.00150.0958160.0001
Mysql Total
Database connection0.00100.062810.0010
Mysqli_queries1.526097.0137460.0332
Looping result0.00060.0389440.0000
Template Total1.527097.120.7635
Template load0.00230.143120.0011
Template processing1.524796.933720.7624
Template load and register function0.00020.013710.0002
states
state_id_array0.00250.161910.0025
state_identifier_array0.00550.346520.0027
Override
Cache load0.00180.1158110.0002
Sytem overhead
Fetch class attribute can translate value0.00190.118910.0019
Fetch class attribute name0.00110.072110.0011
XML
Image XML parsing0.00010.008210.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00070.0449100.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0005 secs