summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-24 19:11:23 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-24 19:11:23 +0000
commitba9be47830210ca040a7245ac0753a6efe865430 (patch)
tree52f09a02ec0499b3e2e304d3bc9713d973179df8 /src/main/java
parent74fd3c55ee0a6d380b51e84ca9697d4d50cbf654 (diff)
Standard exists implementation fetches a one record slice.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/amazon/carbonado/qe/StandardQuery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java
index e2081d6..736f31f 100644
--- a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java
+++ b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java
@@ -340,7 +340,7 @@ public abstract class StandardQuery<S extends Storable> extends AbstractQuery<S>
}
public boolean exists() throws FetchException {
- Cursor<S> cursor = fetch();
+ Cursor<S> cursor = fetchSlice(0L, 1L);
try {
return cursor.skipNext(1) > 0;
} finally {