Skip to content

Commit

Permalink
Merge pull request #75 from sarunyou/master
Browse files Browse the repository at this point in the history
add select key when query for reduce cost by using small ops instead of read ops
  • Loading branch information
sebelga authored Sep 19, 2017
2 parents 05a3b17 + 0ef4f0d commit 7dbd473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class Model extends Entity {
if (ancestors) {
query.hasAncestor(this.gstore.ds.key(ancestors.slice()));
}

query.select('__key__');
return query.run().then(onEntities, onError);

// ------------------------------------------------
Expand Down

0 comments on commit 7dbd473

Please sign in to comment.