Changed to use the potentially faster form of bsGetMetadataValue which fetches all metadata at once instead of one at a time.

This commit is contained in:
paul 2006-11-23 07:15:26 +00:00
parent 91130937c5
commit 49c4036a5a
1 changed files with 3 additions and 2 deletions
campcaster/src/modules/storageServer/var

View File

@ -429,11 +429,12 @@ class DataEngine {
} }
$eres = array(); $eres = array();
// echo "\n---\n"; var_dump($res); echo"\n---\n"; // echo "\n---\n"; var_dump($res); echo"\n---\n";
$categoryNames = array('dc:title', 'dc:creator', 'dc:source', 'dcterms:extent'); //$categoryNames = array('dc:title', 'dc:creator', 'dc:source', 'dcterms:extent');
foreach ($res as $it) { foreach ($res as $it) {
if (!$browse) { if (!$browse) {
$gunid = StoredFile::_normalizeGunid($it['gunid']); $gunid = StoredFile::_normalizeGunid($it['gunid']);
$values = $this->gb->bsGetMetadataValue($it['id'], $categoryNames); //$values = $this->gb->bsGetMetadataValue($it['id'], $categoryNames);
$values = $this->gb->bsGetMetadataValue($it['id']);
$eres[] = array( $eres[] = array(
'id' => $it['id'], 'id' => $it['id'],
'gunid' => $gunid, 'gunid' => $gunid,