mirror of https://gitee.com/bigwinds/arangodb
updated CHANGELOG entry for geo indexes
This commit is contained in:
parent
f4d889d697
commit
16dce86bee
27
CHANGELOG
27
CHANGELOG
|
@ -1,14 +1,35 @@
|
||||||
devel
|
devel
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* add implicit use of geo index when using SORT/FILTER in AQL
|
* add implicit use of geo indexes when using SORT/FILTER in AQL, without
|
||||||
|
the need to use the special-purpose geo AQL functions `NEAR` or `WITHIN`.
|
||||||
|
|
||||||
* added KB, MB, GB prefix for integer parameter, % for integer parameter
|
the special purpose `NEAR` AQL function can now be substituted with the
|
||||||
|
following AQL (provided there is a geo index present on the `doc.latitude`
|
||||||
|
and `doc.longitude` attributes):
|
||||||
|
|
||||||
|
FOR doc in geoSort
|
||||||
|
SORT DISTANCE(doc.latitude, doc.longitude, 0, 0)
|
||||||
|
LIMIT 5
|
||||||
|
RETURN doc
|
||||||
|
|
||||||
|
`WITHIN` can be substituted with the following AQL:
|
||||||
|
|
||||||
|
FOR doc in geoFilter
|
||||||
|
FILTER DISTANCE(doc.latitude, doc.longitude, 0, 0) < 2000
|
||||||
|
RETURN doc
|
||||||
|
|
||||||
|
Compared to using the special purpose AQL functions this approach has the
|
||||||
|
advantage that it is more composable, and will also honor any `LIMIT` values
|
||||||
|
used in the AQL query.
|
||||||
|
|
||||||
|
* added KB, MB, GB prefix for integer parameters, % for integer parameters
|
||||||
with a base value
|
with a base value
|
||||||
|
|
||||||
* added JEMALLOC 4.5.0
|
* added JEMALLOC 4.5.0
|
||||||
|
|
||||||
* added --vm.resident-limit and --vm.path for mmap after a limit
|
* added `--vm.resident-limit` and `--vm.path` for file-backed memory mapping
|
||||||
|
after reaching a configurable maximum RAM size
|
||||||
|
|
||||||
* try recommended limit for file descriptors in case of unlimited
|
* try recommended limit for file descriptors in case of unlimited
|
||||||
hard limit
|
hard limit
|
||||||
|
|
|
@ -104,7 +104,7 @@ Use GeoIndex with AQL SORT statement:
|
||||||
| db.geoSort.save({ name : "Name/" + i + "/" + j, latitude : i, longitude : j });
|
| db.geoSort.save({ name : "Name/" + i + "/" + j, latitude : i, longitude : j });
|
||||||
| }
|
| }
|
||||||
}
|
}
|
||||||
var query = "FOR doc in geoSort SORT distance(doc.latitude, doc.longitude, 0, 0) LIMIT 5 RETURN doc"
|
var query = "FOR doc in geoSort SORT DISTANCE(doc.latitude, doc.longitude, 0, 0) LIMIT 5 RETURN doc"
|
||||||
db._explain(query, {}, {colors: false});
|
db._explain(query, {}, {colors: false});
|
||||||
db._query(query);
|
db._query(query);
|
||||||
~db._drop("geoSort")
|
~db._drop("geoSort")
|
||||||
|
@ -122,7 +122,7 @@ Use GeoIndex with AQL FILTER statement:
|
||||||
| db.geoFilter.save({ name : "Name/" + i + "/" + j, latitude : i, longitude : j });
|
| db.geoFilter.save({ name : "Name/" + i + "/" + j, latitude : i, longitude : j });
|
||||||
| }
|
| }
|
||||||
}
|
}
|
||||||
var query = "FOR doc in geoFilter FILTER distance(doc.latitude, doc.longitude, 0, 0) < 2000 RETURN doc"
|
var query = "FOR doc in geoFilter FILTER DISTANCE(doc.latitude, doc.longitude, 0, 0) < 2000 RETURN doc"
|
||||||
db._explain(query, {}, {colors: false});
|
db._explain(query, {}, {colors: false});
|
||||||
db._query(query);
|
db._query(query);
|
||||||
~db._drop("geoFilter")
|
~db._drop("geoFilter")
|
||||||
|
|
Loading…
Reference in New Issue