Speed up initial items pane load (tested at ~20% faster with 5400 items)
This commit is contained in:
parent
ad965b1675
commit
03023e6265
1 changed files with 1 additions and 8 deletions
|
@ -46,13 +46,7 @@ Zotero.Items = new function() {
|
|||
['firstCreator', 'numNotes', 'numAttachments']
|
||||
);
|
||||
}
|
||||
|
||||
// Make a copy of array
|
||||
var fields = [];
|
||||
for each(var field in _primaryFields) {
|
||||
fields.push(field);
|
||||
}
|
||||
return fields;
|
||||
return _primaryFields;
|
||||
});
|
||||
|
||||
this.__defineGetter__('linkedItemPredicate', function () "owl:sameAs");
|
||||
|
@ -605,7 +599,6 @@ Zotero.Items = new function() {
|
|||
}
|
||||
var itemsRows = Zotero.DB.query(sql);
|
||||
var itemIDs = [];
|
||||
|
||||
for each(var row in itemsRows) {
|
||||
var itemID = row.itemID;
|
||||
itemIDs.push(itemID);
|
||||
|
|
Loading…
Reference in a new issue