Conversation
|
That's a brilliant idea. Nice work. LGTM. |
|
@erikschlegel Yes, that's true. The new tables are pretty specific. The The Thoughts? |
See rationale in comment #95 (comment)
See rationale in comment CatalystCode/project-fortis-pipeline#95 (comment)
See rationale in comment #95 (comment)
dfabc73 to
abdb81e
Compare
Implement byLocations query
See usage example in 63fd942.
The eventtopics table is used in the MessagesSchema.byEdges query where we need to find all the events for a particular set of keywords. This is why we index the table on the topics and link the eventids.
The mentionedtopics table is used in the EdgesSchema.terms query to find all the keywords for a particular time period. We can't re-use the eventtopics table since we don't have access to a topic here.
The eventplaces table is used in the MessagesSchema.byBbox query to find all the events for a particular keyword combination, timespan and bounding box. Potentially this table can be further simplified to index off of tile-{x,y,z} instead of placeid if we pass through the zoom-level from the frontend. This would allow us to get rid of the query to the featureService.