Are several thousand locations a problem?

Author Message

Bertin Hansen

Monday 15 November 2010 4:33:58 am

I am working with a large food recipe site and the customers of that site are able to bookmark recipes and organize them in self-made categories ("folders") on their own cooking booke page. The standard bookmark feature does not support categorization so I am planning to use the location feature of eZ Publish to solve this requirement. When the user creates a new category, the code will create a new folder under the customers cooking book node (my own class), and when the customer bookmarks a recipe the code will add a new location to the recipe to that new folder. We will have thousands of users, so a recipe may be located in several thousand locations. Will this be a performence problem? Is this a good idea, or could the requirement be solved in another way? I have rejected the idea of using a object relation list, because I think this would give bad performance when editing the recipe in the Admin GUI.

Bertrand Dunogier

Monday 15 November 2010 5:22:48 am

I wouldn't use locations for that. Locations are strongly linked to content cache, and this would really hurt when updating a recipe...

Relations might be a way to go, you just have to write a custom UI for it. Pretty much like you wouldn't use the default UI to add locations, would you ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Gaetano Giunta

Monday 15 November 2010 6:12:10 am

Maybe the keyword datatype can also be used with some kind of namespaced keywords? It also has some knobs related to caching that can be of use...

Principal Consultant International Business
Member of the Community Project Board

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 29 2025 23:45:55
Script start
Timing: Jan 29 2025 23:45:55
Module start 'layout'
Timing: Jan 29 2025 23:45:55
Module start 'content'
Timing: Jan 29 2025 23:45:55
Module end 'content'
Timing: Jan 29 2025 23:45:55
Script end

Main resources:

Total runtime0.0354 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.0058 588.2656151.2266
Module start 'layout' 0.00580.0023 739.492236.6875
Module start 'content' 0.00810.0257 776.179790.2031
Module end 'content' 0.03370.0017 866.382833.9766
Script end 0.0354  900.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00267.2350140.0002
Check MTime0.00102.9312140.0001
Mysql Total
Database connection0.00082.400010.0008
Mysqli_queries0.00226.130330.0007
Looping result0.00000.034310.0000
Template Total0.00123.410.0012
Template load0.00092.473410.0009
Template processing0.00030.877910.0003
Override
Cache load0.00051.524810.0005
General
dbfile0.018953.402880.0024
String conversion0.00000.020940.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