Versions: how to get rid of them?

Author Message

Ted Striker

Thursday 26 August 2004 12:41:58 am

Hello there!

Here goes my question:

Can I disable the version system so that a unique article version exists for each article in database?

With versions my database grows like hell!! The site does not used this version storage ezpublish feature, cause there is not any work flow defined, so a single editor does it all.

There are php scripts to clean database, but not for 3.4.1 version yet and cleaning old versions one by one is a real pain in the....

Any ideas?? TIA

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Bård Farstad

Thursday 26 August 2004 12:59:53 am

You can change this in content.ini. However the minimum ammount of versions are two, but that should probably do the trick.

# Define maximum versions can be managed. Use syntax
# VersionHistoryClass[class_id]=maximum_nr to specify value for particular
# classes. Otherwise, the value of DefaultVersionHistoryLimit will be used.
[VersionManagement]
DefaultVersionHistoryLimit=10
VersionHistoryClass[1]=5

--bård

Documentation: http://ez.no/doc

Ted Striker

Thursday 26 August 2004 9:10:15 am

Thanx Bård,

I set:

# Define maximum versions can be managed. Use syntax
# VersionHistoryClass[class_id]=maximum_nr to specify value for particular
# classes. Otherwise, the value of DefaultVersionHistoryLimit will be used.
[VersionManagement]
DefaultVersionHistoryLimit=2
VersionHistoryClass[1]=5

I guess that 2 versions will work just fine and the database will not grow too much.

Thanks again for the tip, I find more helpfull this forum than the book or the documentation :)

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

Bård Farstad

Thursday 26 August 2004 11:01:30 am

Ted, glad I could help.

If you find the answer to something which isn't in the documentation feel free to update the doc page on the subject. The documentation is editable by anyone which has an account here on ez.no.

--bård

Documentation: http://ez.no/doc

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 06:17:25
Script start
Timing: Jan 19 2025 06:17:25
Module start 'layout'
Timing: Jan 19 2025 06:17:25
Module start 'content'
Timing: Jan 19 2025 06:17:26
Module end 'content'
Timing: Jan 19 2025 06:17:26
Script end

Main resources:

Total runtime0.6372 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1563152.6250
Module start 'layout' 0.00610.0028 741.781339.4609
Module start 'content' 0.00880.6272 781.2422554.5547
Module end 'content' 0.63600.0012 1,335.796912.1563
Script end 0.6372  1,347.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4863160.0002
Check MTime0.00130.2050160.0001
Mysql Total
Database connection0.00090.147710.0009
Mysqli_queries0.582991.4694600.0097
Looping result0.00060.0882580.0000
Template Total0.607895.420.3039
Template load0.00220.338520.0011
Template processing0.605695.039620.3028
Template load and register function0.00010.015210.0001
states
state_id_array0.00160.254410.0016
state_identifier_array0.00090.135120.0004
Override
Cache load0.00180.2853270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.099020.0003
Fetch class attribute name0.00140.214860.0002
XML
Image XML parsing0.00100.156520.0005
class_abstraction
Instantiating content class attribute0.00000.002880.0000
General
dbfile0.00100.1549230.0000
String conversion0.00000.001240.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs