Bug 40290 - SMW doesn't work with MW installer

Declare $smwgIP a global so it doesn't break when being used in the installer.

Change-Id: I90ab9b2b15b84c8f9b95d045fb39a1ef138b504f
Make use of nicer interface when available and route all set and get requests to the same methods

Change-Id: I0c98593aae5b742b6993075bc551853f2540a94b
Caching mechanism for property table hashes

Property hashes are optionally read and cached when reading the smw_ids table anyway, but only if requested by the caller. The cache is kept very small (1) and is supposed to be used in another call of getPropertyTableHashes() that most likely follows very soon after.

This reduces the number of SELECT for getting property hashes significantly, since they can usually be combined with another SELECT immediately before them. In local tests, the number of reads to smw_ids went down by about 40% when refreshing the data.

Update: Modified protected helper method name for consistent naming.

Change-Id: I92c6ecf00811db52f920c73904402da7cc1cdaad
Merge "Caching mechanism for property table hashes"
Fixed some queries that where not using mw db abstraction layer and failing on any setup with table prefix

Change-Id: Iefb9b8a9d0ce60d706269757861465dbcf8f2d8c
Fixed reference to outdated table name

Name no longer hardcoded now.

Change-Id: I4fbc4eec5009a30a26e2e7338cafaaadbf75a513
Localisation updates from http://translatewiki.net.

Change-Id: Ib50cb87823b210482c364cebcfd6649c3147b947
Localisation updates from http://translatewiki.net.

Change-Id: I8de8d02260ab6ca63a876e1f7a949275a0fc5726
Merge "Fixed reference to outdated table name"
Fixed Bug 41344

Trivial fix to a typo in code introduced earlier. Not worth mentioning in release notes.

Update: Fixed fix to actually work.

Change-Id: I53aed88eaedeef9ce9acfb22e8bb99433ec4c188
Merge "Bug 40290 - SMW doesn't work with MW installer"
Corrected table name after name change

This fixes a bug observed in the discussion of https://gerrit.wikimedia.org/r/29753

Change-Id: Ia69a0ce7c3b538fcc82f095377b7f2f129f442bc
Merge "Corrected table name after name change"
Fix to bug 41269

Now computing stats during setup, so the insert is anyway not needed.

Patchset2: catching some exceptions, cannot see another way to do this
best.

Patchset4: using verbose stuff
Patchset5: Less scary messages
Patchset6: Messages Markus prefers:P

Change-Id: Ic928d14a89419ad0e6693a87eca65191827108e7
refactor store dependent stuff to be in the relevant store class

Change-Id: Ife26c19cec26228e7686a6c7ad3797ce2462b767
Localisation updates from http://translatewiki.net.

Change-Id: I38428b709bd09a581cadde33fc1d4bf6f4deb8f5
Merge "refactor store dependent stuff to be in the relevant store class"
Localisation updates from http://translatewiki.net.

Change-Id: Ib1d21fe52c0a605dbba50ca1faa74a7f639b631e
Merge "Fix to bug 41269"
Better indexes for Store3

* Create different indexes than before; more useful for our queries
* Most indexes now created automatically from DIHandler information, only additional indexes need to be set
* Cleaned up/refactored index update code in SQLHelpers; better reporting

Tested for MySQL. It would be good to test for SQLite and PostreSQL, although (in theory) the old code was merely moved and restructured.

Change-Id: I4907a8bea6d4db60daf64c63b994a7a44784fe1d