Page MenuHomePhabricator

LaTeXML: Ackermann page is rerendered over and again
Closed, ResolvedPublic

Description

Author: physik

Description:
The page of the Ackermann function
https://en.wikipedia.org/wiki/Ackermann_function#Expansion
in LaTeXML rendering mode that is enabled for example here
http://ntcir11-wmc.nii.ac.jp/index.php/Ackermann%20function
rerenderes the long expansion on every page visit.


Version: unspecified
Severity: minor

Details

Reference
bz73090

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 3:54 AM
bzimport added a project: Math.
bzimport set Reference to bz73090.

physik wrote:

It seems to be a problem with the database layout.
The mathml column is too short...

Select count(l), l from (SELECT length(math_mathml) l FROM mediawiki.mathlatexml order by length(math_mathml) desc) t group by l order by l desc;

Indicates that 35/312240 mathml expression are longer than 65535.

physik wrote:

The Latexml table can be updated via
ALTER TABLE mathlatexml
CHANGE COLUMN math_mathml math_mathml MEDIUMBLOB NULL DEFAULT NULL ;

physik wrote:

After the update the affected pages need to be rerendered.
The affected pages can be obtained via
select distinct mathindex_page_id as oldid from mathlatexml join mathindex on mathindex_inputhash = math_inputhash where length(math_mathml)=65535;

This list can be used for manual purging. Note that the the mathindex_page_id refers to the oldid.

Change 171627 had a related patch set uploaded by Physikerwelt:
Increase size of the math_mathml in the mathlatexml table

https://gerrit.wikimedia.org/r/171627

physik wrote:

After having reloaded all 35 pages via curl
curl http://ntcir11-wmc.nii.ac.jp/index.php?oldid=15477
the problem seems to be fixed.
The longest mathml expression is 129726 chars now.

Change 171627 merged by jenkins-bot:
Increase size of the math_mathml in the mathlatexml table

https://gerrit.wikimedia.org/r/171627

Physikerwelt closed this task as Resolved.Dec 5 2014, 3:40 PM
Physikerwelt set Security to None.