We would like to both cut down on the space used by the revisions table, and change the way we count user participation by compressing revision histories when users do multiple consecutive saves within a single short time.
In maintenance, I see that there are scripts to just delete specific revisions by id from the revisions table. So, we're thinking that we would run a script to delete revisions based on some criteria, and also make an extension that hooks at ArticleSave or ArticleSaveComplete to delete prior revisions by the same user if they are within a specified time period.
Before trying this, I thought I'd ask to see if - anyone sees potential problems. - its been done already
Thanks!
Jim
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
On Mon, Jul 26, 2010 at 3:07 PM, Jim Hu jimhu@tamu.edu wrote:
We would like to both cut down on the space used by the revisions table, and change the way we count user participation by compressing revision histories when users do multiple consecutive saves within a single short time.
In maintenance, I see that there are scripts to just delete specific revisions by id from the revisions table. So, we're thinking that we would run a script to delete revisions based on some criteria, and also make an extension that hooks at ArticleSave or ArticleSaveComplete to delete prior revisions by the same user if they are within a specified time period.
Before trying this, I thought I'd ask to see if
- anyone sees potential problems.
- its been done already
http://www.mediawiki.org/wiki/Manual:CompressOld.php http://www.mediawiki.org/wiki/Manual:$wgCompressRevisions
I know about these... it's not the same thing.
On Jul 26, 2010, at 3:48 PM, OQ wrote:
On Mon, Jul 26, 2010 at 3:07 PM, Jim Hu jimhu@tamu.edu wrote:
We would like to both cut down on the space used by the revisions table, and change the way we count user participation by compressing revision histories when users do multiple consecutive saves within a single short time.
In maintenance, I see that there are scripts to just delete specific revisions by id from the revisions table. So, we're thinking that we would run a script to delete revisions based on some criteria, and also make an extension that hooks at ArticleSave or ArticleSaveComplete to delete prior revisions by the same user if they are within a specified time period.
Before trying this, I thought I'd ask to see if
- anyone sees potential problems.
- its been done already
http://www.mediawiki.org/wiki/Manual:CompressOld.php http://www.mediawiki.org/wiki/Manual:$wgCompressRevisions
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
mediawiki-l@lists.wikimedia.org