Hi there, We have been working on a project with the title "Optimizing Multiple Aggregate Queries over a Complex Event Processing Engine". The aim is to optimize a group of queries. Take such as "how many cars passed the post in the past 1 minute" and "how many cars passed the post in the past 2 minutes" are 2 queries, and the naive and inefficient method to answer both the queries is to independently solve both of these queries one by one and find the answer. However, the optimum way would be to minimize the computation by using the answer given by query 1 and using it in query 2. This is basically what our aim is, to minimize computation cost when we have multiple aggregate queries in a CEP.Sahil Arora Final year B.Tech Undergrad | Indian Institute of Technology MandiLinkedIn: sahilarora535 Ph: <a href="tel:+91%2081305%2006047" value="+918130506047" class="gmail_msg" target="_blank">+91-8130506047 |
Hi Sahil,
I'm not a CEP expert but I will loop in Kostas (in CC). In general, the example that you described can be easily done with a ProcessFunction [1]. A process function not only allows to keep state (like a count) but also allows you to set timers flexibly for specific use cases such that aggregations can be triggered/reused. So in general I would say that implementing and testing such an algorithm is possible. How easy it can be interegrated into the CEP API, I don't know. Regards, Timo [1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/stream/operators/process_function.html Am 2/9/18 um 11:28 PM schrieb Sahil Arora:
|
Hi Timo, -- Thanks a lot for the help. I will be looking forward to a reply from Kostas to be clearer on this. On Mon, 12 Feb 2018, 10:01 pm Timo Walther, <[hidden email]> wrote:
Sahil Arora Final year B.Tech Undergrad | Indian Institute of Technology MandiLinkedIn: sahilarora535 Ph: <a href="tel:+91%2081305%2006047" value="+918130506047" class="gmail_msg" target="_blank">+91-8130506047 |
Hi Sahil,
Currently CEP does not support multi-query optimizations out-of-the-box. In some cases you can do manual optimizations to your code, but there is no optimizer involved. Cheers, Kostas
|
Thank you Kostas for your inputs. We will try to integrate an optimizer into flink and will get back in case we get stuck. Regards.On Thu, 15 Feb 2018 at 19:11 Kostas Kloudas <[hidden email]> wrote:
Sahil Arora Final year B.Tech Undergrad | Indian Institute of Technology MandiLinkedIn: sahilarora535 Ph: <a href="tel:+91%2081305%2006047" value="+918130506047" class="gmail_msg" target="_blank">+91-8130506047 |
Free forum by Nabble | Edit this page |