From ba9be47830210ca040a7245ac0753a6efe865430 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sat, 24 May 2008 19:11:23 +0000 Subject: Standard exists implementation fetches a one record slice. --- src/main/java/com/amazon/carbonado/qe/StandardQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado') 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 extends AbstractQuery } public boolean exists() throws FetchException { - Cursor cursor = fetch(); + Cursor cursor = fetchSlice(0L, 1L); try { return cursor.skipNext(1) > 0; } finally { -- cgit v1.2.3