Relate objects and objectrelationlist

Author Message

Roy Bøhmer

Sunday 24 October 2004 6:49:18 am

Hi!

As far as I know there are two documented ways to relate objects to each other:
1) the datatype 'ezKeywords'
2) the function 'related objects'

Both has some major disadvantages.
The keywords is a great feature, but with several authors the list list of keywords will soon grow confusingly large. You could also make a list of legal keywords, but it's still volunerable for typos.
The related objects is also great, but because it's used to insert images etc. into xmltxt you loose some control of what content should be listed as related content/downloadable files etc. and what should not.

I've gone public with one site using ezObjectrelationlist (ORL) to do the relation. Later I found this to have some major drawbacks too: When two objects both put the each other in ORL the server times out when saving. (some kind of never ending circle resulting in many entires in ORL – all of the same object.) In addition, when an object is deleted its not deleted from the ORLs its in.

Have I missed something?
I use ORL a lot for selecting topstoies etc, but I start wondering if I don't understand the inner working of that datatype. Anyone have an explanation on how ORL stores its data?

How would you do "the perfect" relation of relating content?

Roy B

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 07:16:07
Script start
Timing: Jan 19 2025 07:16:07
Module start 'layout'
Timing: Jan 19 2025 07:16:07
Module start 'content'
Timing: Jan 19 2025 07:16:07
Module end 'content'
Timing: Jan 19 2025 07:16:07
Script end

Main resources:

Total runtime0.0140 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.0053 589.1719152.6250
Module start 'layout' 0.00530.0020 741.796939.4453
Module start 'content' 0.00720.0048 781.242285.1953
Module end 'content' 0.01200.0019 866.437530.3047
Script end 0.0139  896.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.5652140.0002
Check MTime0.00107.3737140.0001
Mysql Total
Database connection0.00075.335910.0007
Mysqli_queries0.002215.456830.0007
Looping result0.00000.064810.0000
Template Total0.001611.610.0016
Template load0.00086.021410.0008
Template processing0.00085.593410.0008
Override
Cache load0.00064.292210.0006
General
dbfile0.00117.834180.0001
String conversion0.00000.029040.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