Batch retreival of ES data with minimal round trips
authorErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 2 Aug 2013 23:08:22 +0000 (16:08 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 5 Aug 2013 17:36:53 +0000 (10:36 -0700)
commitbfe131448e17c235110a3d60b80b838a2d270bdc
tree5beb76540d0c589079cb561169de4a5a3ddea450
parentadbaf0b8a5b8e684a4e2f001bb8e9f485364adbc
Batch retreival of ES data with minimal round trips

Batches ES urls by schema and host to reduce round trips required to retreive
many pieces of data.  Takes array of ES urls to retreive and returns a map
from ES urls to their data.  Errored urls are represented with a boolean false
in the result set.  Initially implemented for ExternalStoreDB, other stores
fallback to serial requests.

Change-Id: If1bef25f57bfe7de32fc6787f553a90bd76e87ea
includes/externalstore/ExternalStore.php
includes/externalstore/ExternalStoreDB.php
includes/externalstore/ExternalStoreMedium.php