Last modified: 2011-03-13 18:04:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9896, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7896 - leave only the current version of each page in the database
leave only the current version of each page in the database
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
PC Linux
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-12 19:23 UTC by Dan Jacobson
Modified: 2011-03-13 18:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Jacobson 2006-11-12 19:23:25 UTC
Let's say one loves to use 'php deleteBatch.php && php importTextFile.php'
for each edit, no matter how minor.
This has swollen my
-rw-rw---- 1 35651584 2006-11-08 03:13 /var/lib/mysql/ibdata1
and even the invitingly named maintenance/deleteOldRevisions.php won't
help. There is no command I can find that will just leave only the
current version of each page in ibdata1.
Comment 1 Rob Church 2006-11-12 19:33:55 UTC
deleteOldRevisions.php will do it, under certain circumstances, and provided the
--delete option is passed. If that doesn't work, give purgeRedundantText.php a
try. Both assume you're storing text in the database and won't affect external
storage clusters.

Incidentally, MediaWiki isn't designed to discard old information in this
manner. If space is an issue, there are several scripts which can compress old
revisions, which might work out safer (deleteOldRevision et al. weren't tested
as thoroughly as I'd like).
Comment 2 Dan Jacobson 2006-11-16 15:54:35 UTC
Nope,
$ php purgeOldText.php --purge #(no purgeRedundantText.php found)
$ php deleteOldRevisions.php --delete
say 0 inactive items found, 0 old revisions found.
$  ls -og /var/lib/mysql/ibdata1
-rw-rw---- 1 35651584 2006-11-14 23:33 /var/lib/mysql/ibdata1
as big as ever.
Comment 3 Rob Church 2006-11-16 17:01:07 UTC
*shrug*

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links