|
@@ -424,7 +424,7 @@ func applyCompares(rv mvcc.ReadView, cmps []*pb.Compare) bool {
|
|
|
// applyCompare applies the compare request.
|
|
// applyCompare applies the compare request.
|
|
|
// If the comparison succeeds, it returns true. Otherwise, returns false.
|
|
// If the comparison succeeds, it returns true. Otherwise, returns false.
|
|
|
func applyCompare(rv mvcc.ReadView, c *pb.Compare) bool {
|
|
func applyCompare(rv mvcc.ReadView, c *pb.Compare) bool {
|
|
|
- // TOOD: possible optimizations
|
|
|
|
|
|
|
+ // TODO: possible optimizations
|
|
|
// * chunk reads for large ranges to conserve memory
|
|
// * chunk reads for large ranges to conserve memory
|
|
|
// * rewrite rules for common patterns:
|
|
// * rewrite rules for common patterns:
|
|
|
// ex. "[a, b) createrev > 0" => "limit 1 /\ kvs > 0"
|
|
// ex. "[a, b) createrev > 0" => "limit 1 /\ kvs > 0"
|