Comments (3)
MATCH and WHERE add some complexity to a query. Both are linear, and are performed on each potential record. MATCH is probably a little faster than WHERE because it directly performs a comparison operation on the ID, while the WHERE needs to dig into the object fields. Both should be pretty fast in most cases, yet workflows vary so I recommend testing on your side to see which is best of you.
Also is there any performance benefit of referring the geofence as
GET area test
v/s defining it directly
No, both will perform the same.
from tile38.
@tidwall just had one more question regarding this. Please refer to the following query ->
SETHOOK test1 kafka://127.0.0.1:9092/bbb INTERSECTS person WHERE name 2 alice bob FENCE DETECT enter,exit OBJECT {"type":"Polygon","coordinates":[[[75.63783657767418,25.43318147102104],[75.6392084514683,25.43305944145809],........[75.63783657767418,25.43318147102104]]]}
SETHOOK test2 kafka://127.0.0.1:9092/bbb INTERSECTS person WHERE name 2 rob lob FENCE DETECT enter,exit OBJECT {"type":"Polygon","coordinates":[[[75.63783657767418,25.43318147102104],[75.6392084514683,25.43305944145809],........[75.63783657767418,25.43318147102104]]]}
as you can see the geofence is same in both the case. Does it internally treat it as 2 geofences? Or it keeps the hook on the same geofence?
If it does not treat it as same geofence i think creating a geofence first and then defining the hooks makes more sense.
from tile38.
it'll be treated as two geofences and if a devices enters the polygon it'll send two events to kafka
from tile38.
Related Issues (20)
- Tile38 does not support EXISTS command. HOT 2
- FSET does not have a FGET counterpoint HOT 2
- 使用tile
- 使用tile38如何判断点是否在库中存储的区域对象中
- How can I tell if a point is in a region with tile38 HOT 2
- How to execute INTERSECTS command through StatefulRedisConnection in Spring
- GOPATH / GOROOT HOT 2
- tile38 How to calculate the distance between two points HOT 1
- tile38 How to calculate the distance between two points HOT 1
- Invalid JSON created when setting a field to a string value like '000296'. HOT 4
- WebSocket interface doesn't reply to requests after connection upgrade HOT 7
- tile38 use Geofencing watches
- Bug: Tile38 followers can get out of sync with leaders HOT 2
- FSET transforms field names to lowercase HOT 7
- The arm64 environment is not running properly HOT 3
- Issue with WITHIN Query in Tile38 Geofencing HOT 10
- Tile38 unable to write and getting crash HOT 4
- ROLE command with JSON output has extra quote HOT 1
- Tile38 is not publishing its db stats to redis sentinel which causes sentinel to pick wrong master HOT 2
- TILE38 cpu spikes with lots of geofences and kafka hooks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tile38.