T90025 revealed some pretty large external links, like:
- https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=id&modules=Base64.js|easy-deflate.core,deflate|ext.visualEditor.base,core,mediawiki,viewPageTarget|ext.visualEditor.core.desktop|jquery.visibleText|mediawiki.api.edit|mediawiki.feedback,template|oojs,oojs-ui,papaparse,rangefix,unicodejs|oojs-ui.styles&skin=vector&version=20150107T194504Z&*:641:594
- https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=id&modules=Base64.js|easy-deflate.core,deflate|ext.visualEditor.base,core,mediawiki,viewPageTarget|ext.visualEditor.core.desktop|jquery.visibleText|mediawiki.api.edit|mediawiki.feedback,template|oojs,oojs-ui,papaparse,rangefix,unicodejs|oojs-ui.styles&skin=vector&version=20150107T194504Z&*:671:643
The unique index flow_ext_ref_pk constraint results in this post not being inserted, even though the links are different.
The index is too short to hold the entire value, and the differences are near the end of the very long links.
Apart from the index, we may also want to think about the size of that column (currently varbinary(255))