Database: Add batching to non-native insertSelect()
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 8 Feb 2018 19:16:29 +0000 (14:16 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 28 Feb 2018 18:58:37 +0000 (13:58 -0500)
commitaefb143a8e8c963d6fedb471bbdace284be88196
tree1c2a2f0d548f8dc616bc8818b72699cb74b73680
parentf702750e6be0eacf274e8540fa438e3712f33aeb
Database: Add batching to non-native insertSelect()

It would be easy for a call to nonNativeInsertSelect() to generate an
INSERT that's too big for the database to actually process. Add batching
to try to avoid that.

Bug: T160993
Change-Id: I1de994208d95926f0d75c0d7cab7b5fe1dd565c3
includes/libs/rdbms/database/Database.php
tests/phpunit/includes/libs/rdbms/database/DatabaseSQLTest.php