Cleanup database?

Author Message

Siniša Šehović

Monday 20 November 2006 6:51:43 am

Hi

I have one small problem!:-)

Need to clenup database of leftovers. (old unused records in database)

How to do that?

I am using ez 3.8.6 and mysql with innodb

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Ekkehard Dörre

Wednesday 22 November 2006 5:57:59 am

Hi Sinisa,

under bin/php/ are a lot of helper scripts which you can access via php cli.

flatten.php inline comment:


$script =& eZScript::instance( array( 'description' => ( "eZ publish database flattening.\n\n" .
                                                         "Will remove data that is not considered currently in use to minimize the amount of database data it consumes\n" .
                                                         "\n" .
                                                         "Possible values for NAME is:\n" .
                                                         "contentobject, contentclass, workflow, role or all (for all items)\n" .
                                                         "flatten.php -s admin contentobject"),
                                      'use-session' => false,
                                      'use-modules' => true,
                                      'use-extensions' => true ) );

Some documentation about the scripts:

http://ez.no/doc/ez_publish/upgrading/the_system_upgrade_scripts

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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

Main resources:

Total runtime0.0454 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0156151.1953
Module start 'layout' 0.00570.0040 739.2109220.6563
Module start 'content' 0.00970.0340 959.8672997.8984
Module end 'content' 0.04370.0017 1,957.765633.9922
Script end 0.0453  1,991.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00306.6048140.0002
Check MTime0.00122.6162140.0001
Mysql Total
Database connection0.00081.780710.0008
Mysqli_queries0.00234.993830.0008
Looping result0.00000.024210.0000
Template Total0.00132.810.0013
Template load0.00102.239410.0010
Template processing0.00020.527010.0002
Override
Cache load0.00071.628310.0007
General
dbfile0.014331.561280.0018
String conversion0.00000.014740.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