Reduce Number of Version and clean DB?

Author Message

Peter Schnuerer

Thursday 29 December 2005 7:47:39 am

Hi,

I reduced

DefaultVersionHistoryLimit

in content.ini to "3"

So the number of versions should be reduced to 3

But there are still up to 10 versions in my database. I think I have to run some script to delete all old versions. Is there such a script?

Thanx
Peter

Xavier Dutoit

Thursday 29 December 2005 8:19:27 am

./bin/php/flatten.php --help

eZ publish database flattening.

Will remove data that is not considered currently in use to minimize the amount of database data it consumes

I think that's going to delete all the archived versions, not only those > 3.

I only used it as a tool to clean the database at the end of my dev before launching the site.

X+

http://www.sydesy.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 16:05:28
Script start
Timing: Jan 18 2025 16:05:28
Module start 'layout'
Timing: Jan 18 2025 16:05:28
Module start 'content'
Timing: Jan 18 2025 16:05:29
Module end 'content'
Timing: Jan 18 2025 16:05:29
Script end

Main resources:

Total runtime0.6869 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0156152.6250
Module start 'layout' 0.00520.0026 740.640639.4453
Module start 'content' 0.00790.6776 780.0859528.0625
Module end 'content' 0.68550.0014 1,308.14848.1563
Script end 0.6869  1,316.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5052160.0002
Check MTime0.00130.1940160.0001
Mysql Total
Database connection0.00080.120210.0008
Mysqli_queries0.638292.9000540.0118
Looping result0.00060.0824520.0000
Template Total0.656895.620.3284
Template load0.00200.288720.0010
Template processing0.654895.326620.3274
Template load and register function0.00010.014910.0001
states
state_id_array0.00090.133210.0009
state_identifier_array0.00100.145120.0005
Override
Cache load0.00160.2356200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.073120.0003
Fetch class attribute name0.00130.191840.0003
XML
Image XML parsing0.00110.157020.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00100.1438220.0000
String conversion0.00000.001340.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs