activetokyocabinet 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,11 @@ module ActiveRecord
|
|
68
68
|
private :tdbopen
|
69
69
|
|
70
70
|
def count_rkey(tdb, parsed_sql)
|
71
|
-
|
71
|
+
if (parsed_sql[:condition] || []).empty?
|
72
|
+
tdb.rnum
|
73
|
+
else
|
74
|
+
query(tdb, parsed_sql).searchcount
|
75
|
+
end
|
72
76
|
end
|
73
77
|
private :count_rkey
|
74
78
|
|