Forums / Setup & design / Versions: how to get rid of them?

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

eZ debug

Timing: Jan 19 2025 03:35:55
Script start
Timing: Jan 19 2025 03:35:55
Module start 'content'
Timing: Jan 19 2025 03:35:55
Module end 'content'
Timing: Jan 19 2025 03:35:56
Script end

Main resources:

Total runtime0.2095 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 590.0859180.8359
Module start 'content' 0.00990.0074 770.921997.9141
Module end 'content' 0.01730.1921 868.8359526.2031
Script end 0.2094  1,395.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.7568200.0002
Check MTime0.00150.7121200.0001
Mysql Total
Database connection0.00200.938410.0020
Mysqli_queries0.154973.95901410.0011
Looping result0.00150.70411390.0000
Template Total0.191891.510.1918
Template load0.00090.437710.0009
Template processing0.190891.093210.1908
Override
Cache load0.00070.314010.0007
Sytem overhead
Fetch class attribute can translate value0.00080.359810.0008
XML
Image XML parsing0.00030.126510.0003
General
dbfile0.00221.0554200.0001
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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