{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,5]],"date-time":"2026-10-05T15:42:54Z","timestamp":1791214974935,"version":"4.1.0"},"reference-count":33,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2008,3,1]],"date-time":"2008-03-01T00:00:00Z","timestamp":1204329600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["HS-0534531"],"award-info":[{"award-number":["HS-0534531"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2008,3]]},"abstract":"<jats:p>The emergence of monitoring applications has precipitated the need for Data Stream Management Systems (DSMSs), which constantly monitor incoming data feeds (through registered continuous queries), in order to detect events of interest. In this article, we examine the problem of how to schedule multiple Continuous Queries (CQs) in a DSMS to optimize different Quality of Service (QoS) metrics. We show that, unlike traditional online systems, scheduling policies in DSMSs that optimize for average response time will be different from policies that optimize for average slowdown, which is a more appropriate metric to use in the presence of a heterogeneous workload. Towards this, we propose policies to optimize for the average-case performance for both metrics. Additionally, we propose a hybrid scheduling policy that strikes a fine balance between performance and fairness, by looking at both the average- and worst-case performance, for both metrics. We also show how our policies can be adaptive enough to handle the inherent dynamic nature of monitoring applications. Furthermore, we discuss how our policies can be efficiently implemented and extended to exploit sharing in optimized multi-query plans and multi-stream CQs. Finally, we experimentally show using real data that our policies consistently outperform currently used ones.<\/jats:p>","DOI":"10.1145\/1331904.1331909","type":"journal-article","created":{"date-parts":[[2008,3,25]],"date-time":"2008-03-25T14:01:40Z","timestamp":1206453700000},"page":"1-44","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":54,"title":["Algorithms and metrics for processing multiple heterogeneous continuous queries"],"prefix":"10.1145","volume":"33","author":[{"given":"Mohamed A.","family":"Sharaf","sequence":"first","affiliation":[{"name":"University of Pittsburgh, Pittsburgh, PA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Panos K.","family":"Chrysanthis","sequence":"additional","affiliation":[{"name":"University of Pittsburgh, Pittsburgh, PA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alexandros","family":"Labrinidis","sequence":"additional","affiliation":[{"name":"University of Pittsburgh, Pittsburgh, PA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kirk","family":"Pruhs","sequence":"additional","affiliation":[{"name":"University of Pittsburgh, Pittsburgh, PA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2008,3,21]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/288235.288248"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/90.811450"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/342009.335420"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/872757.872789"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-004-0132-6"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/780542.780580"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the ACM Symposium on Discrete Algorithms (SODA).","author":"Bender M. A.","unstructured":"Bender , M. A. , Chakrabarti , S. , and Muthukrishnan , S . 1998. Flow and stretch metrics for scheduling continuous job streams . In Proceedings of the ACM Symposium on Discrete Algorithms (SODA). Bender, M. A., Chakrabarti, S., and Muthukrishnan, S. 1998. Flow and stretch metrics for scheduling continuous job streams. In Proceedings of the ACM Symposium on Discrete Algorithms (SODA)."},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Carney D.","unstructured":"Carney , D. , Cetintemel , U. , Cherniack , M. , Convey , C. , Lee , S. , Seidman , G. , Stonebraker , M. , Tatbul , N. , and Zdonik , S . 2002. Monitoring streams: A new class of data management applications . In Proceedings of the Very Large Data Bases Conference (VLDB). Carney, D., Cetintemel, U., Cherniack, M., Convey, C., Lee, S., Seidman, G., Stonebraker, M., Tatbul, N., and Zdonik, S. 2002. Monitoring streams: A new class of data management applications. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Carney D.","unstructured":"Carney , D. , Cetintemel , U. , Rasin , A. , Zdonik , S. , Cherniack , M. , and Stonebraker , M . 2003. Operator scheduling in a data stream manager . In Proceedings of the Very Large Data Bases Conference (VLDB). Carney, D., Cetintemel, U., Rasin, A., Zdonik, S., Cherniack, M., and Stonebraker, M. 2003. Operator scheduling in a data stream manager. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_10_1","volume-title":"Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR).","author":"Chandrasekaran S.","unstructured":"Chandrasekaran , S. , Cooper , O. , Deshpande , A. , Franklin , M. J. , Hellerstein , J. M. , Hong , W. , Krishnamurthy , S. , Madden , S. , Raman , V. , Reiss , F. , and Shah , M. A . 2003. TelegraphCQ: Continuous Dataflow Processing for an Uncertain World . In Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR). Chandrasekaran, S., Cooper, O., Deshpande, A., Franklin, M. J., Hellerstein, J. M., Hong, W., Krishnamurthy, S., Madden, S., Raman, V., Reiss, F., and Shah, M. A. 2003. TelegraphCQ: Continuous Dataflow Processing for an Uncertain World. In Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR)."},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the International Conference on Data Engineering (ICDE).","author":"Chen J.","unstructured":"Chen , J. , DeWitt , D. J. , and Naughton , J. F . 2002. Design and evaluation of alternative selection placement strategies in optimizing continuous queries . In Proceedings of the International Conference on Data Engineering (ICDE). Chen, J., DeWitt, D. J., and Naughton, J. F. 2002. Design and evaluation of alternative selection placement strategies in optimizing continuous queries. In Proceedings of the International Conference on Data Engineering (ICDE)."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/872757.872838"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/375551.375567"},{"key":"e_1_2_1_14_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Golab L.","unstructured":"Golab , L. and Ozsu , M. T . 2003. Processing sliding window multi-joins in continuous queries over data streams . In Proceedings of the Very Large Data Bases Conference (VLDB). Golab, L. and Ozsu, M. T. 2003. Processing sliding window multi-joins in continuous queries over data streams. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_15_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Hammad M.","unstructured":"Hammad , M. , Franklin , M. , Aref , W. , and Elmagarmid , A. K . 2003. Scheduling for shared window joins over data streams . In Proceedings of the Very Large Data Bases Conference (VLDB). Hammad, M., Franklin, M., Aref, W., and Elmagarmid, A. K. 2003. Scheduling for shared window joins over data streams. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_16_1","volume-title":"Proceedings of the International Conference on Data Engineering (ICDE).","author":"Hammad M. A.","unstructured":"Hammad , M. A. , Mokbel , M. F. , Ali , M. H. , Aref , W. G. , Catlin , A. C. , Elmagarmid , A. K. , Eltabakh , M. , Elfeky , M. G. , Ghanem , T. M. , Gwadera , R. , Ilyas , I. F. , Marzouk , M. , and Xiong , X . 2004. Nile: A query processing engine for data streams . In Proceedings of the International Conference on Data Engineering (ICDE). Hammad, M. A., Mokbel, M. F., Ali, M. H., Aref, W. G., Catlin, A. C., Elmagarmid, A. K., Eltabakh, M., Elfeky, M. G., Ghanem, T. M., Gwadera, R., Ilyas, I. F., Marzouk, M., and Xiong, X. 2004. Nile: A query processing engine for data streams. In Proceedings of the International Conference on Data Engineering (ICDE)."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/52324.52356"},{"key":"e_1_2_1_18_1","volume-title":"Proceedings of the International Conference on Data Engineering (ICDE).","author":"Kang J.","unstructured":"Kang , J. , Naughton , J. F. , and Viglas , S. D . 2003. Evaluating window joins over unbounded streams . In Proceedings of the International Conference on Data Engineering (ICDE). Kang, J., Naughton, J. F., and Viglas, S. D. 2003. Evaluating window joins over unbounded streams. In Proceedings of the International Conference on Data Engineering (ICDE)."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1058150.1058158"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/564691.564698"},{"key":"e_1_2_1_21_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Mehta M.","year":"1993","unstructured":"Mehta , M. and DeWitt , D. J. 1993 . Dynamic memory allocation for multiple-query workloads . In Proceedings of the Very Large Data Bases Conference (VLDB). Mehta, M. and DeWitt, D. J. 1993. Dynamic memory allocation for multiple-query workloads. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR).","author":"Motwani R.","unstructured":"Motwani , R. , Widom , J. , Arasu , A. , Babcock , B. , Babu , S. , Datar , M. , Manku , G. , Olston , C. , Rosenstein , J. , and Varma , R . 2003. Query processing, resource management, and approximation in a data stream management system . In Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR). Motwani, R., Widom, J., Arasu, A., Babcock, B., Babu, S., Datar, M., Manku, G., Olston, C., Rosenstein, J., and Varma, R. 2003. Query processing, resource management, and approximation in a data stream management system. In Proceedings of the Biennial Conference on Innovative Data Systems Research (CIDR)."},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the IEEE Symposium on Foundations of Computer Science (FOCS).","author":"Muthukrishnan S.","unstructured":"Muthukrishnan , S. , Rajaraman , R. , Shaheen , A. , and Gehrke , J. E . 1999. Online scheduling to minimize average stretch . In Proceedings of the IEEE Symposium on Foundations of Computer Science (FOCS). Muthukrishnan, S., Rajaraman, R., Shaheen, A., and Gehrke, J. E. 1999. Online scheduling to minimize average stretch. In Proceedings of the IEEE Symposium on Foundations of Computer Science (FOCS)."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/42201.42203"},{"key":"e_1_2_1_26_1","volume-title":"Proceedings of the 3rd ACS\/IEEE International Conference on Computer Systems and Applications (AICCSA'05)","author":"Sharaf M. A.","unstructured":"Sharaf , M. A. , Chrysanthis , P. K. , and Labrinidis , A . 2005. Preemptive rate-based operator scheduling in a data stream management system . In Proceedings of the 3rd ACS\/IEEE International Conference on Computer Systems and Applications (AICCSA'05) . Cairo, Egypt. Sharaf, M. A., Chrysanthis, P. K., and Labrinidis, A. 2005. Preemptive rate-based operator scheduling in a data stream management system. In Proceedings of the 3rd ACS\/IEEE International Conference on Computer Systems and Applications (AICCSA'05). Cairo, Egypt."},{"key":"e_1_2_1_27_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Sharaf M. A.","unstructured":"Sharaf , M. A. , Chrysanthis , P. K. , Labrinidis , A. , and Pruhs , K . 2006. Efficient scheduling of heterogeneous continuous queries . In Proceedings of the Very Large Data Bases Conference (VLDB). Sharaf, M. A., Chrysanthis, P. K., Labrinidis, A., and Pruhs, K. 2006. Efficient scheduling of heterogeneous continuous queries. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_28_1","volume-title":"Proceedings of the International Workshop on Web and Databases (WebDB).","author":"Sharaf M. A.","unstructured":"Sharaf , M. A. , Labrinidis , A. , Chrysanthis , P. K. , and Pruhs , K . 2005. Freshness-aware scheduling of continuous queries in the dynamic web . In Proceedings of the International Workshop on Web and Databases (WebDB). Sharaf, M. A., Labrinidis, A., Chrysanthis, P. K., and Pruhs, K. 2005. Freshness-aware scheduling of continuous queries in the dynamic web. In Proceedings of the International Workshop on Web and Databases (WebDB)."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/IDEAS.2005.9"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.5555\/1315451.1315481"},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the Very Large Data Bases Conference (VLDB).","author":"Urhan T.","unstructured":"Urhan , T. and Franklin , M. J . 2001. Dynamic pipeline scheduling for improving interactive query performance . In Proceedings of the Very Large Data Bases Conference (VLDB). Urhan, T. and Franklin, M. J. 2001. Dynamic pipeline scheduling for improving interactive query performance. In Proceedings of the Very Large Data Bases Conference (VLDB)."},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/564691.564697"},{"key":"e_1_2_1_33_1","volume-title":"Proceedings of the USENIX Symposium on Operating Systems Design and Implementation (OSDI).","author":"Waldspurger C. A.","unstructured":"Waldspurger , C. A. and Weihl , W. E . 1994. Lottery scheduling: Flexible proportional-share resource management . In Proceedings of the USENIX Symposium on Operating Systems Design and Implementation (OSDI). Waldspurger, C. A. and Weihl, W. E. 1994. Lottery scheduling: Flexible proportional-share resource management. In Proceedings of the USENIX Symposium on Operating Systems Design and Implementation (OSDI)."},{"key":"e_1_2_1_34_1","volume-title":"Proceedings of the International Conference on Parallel and Distributed Information Systems (PDIS).","author":"Wilschut A.","unstructured":"Wilschut , A. and Apers , P . 1991. Dataflow query execution in a parallel main-memory environment . In Proceedings of the International Conference on Parallel and Distributed Information Systems (PDIS). Wilschut, A. and Apers, P. 1991. Dataflow query execution in a parallel main-memory environment. In Proceedings of the International Conference on Parallel and Distributed Information Systems (PDIS)."}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1331904.1331909","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1331904.1331909","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T20:22:28Z","timestamp":1750278148000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1331904.1331909"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2008,3]]},"references-count":33,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2008,3]]}},"alternative-id":["10.1145\/1331904.1331909"],"URL":"https:\/\/doi.org\/10.1145\/1331904.1331909","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2008,3]]},"assertion":[{"value":"2007-01-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2007-09-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2008-03-21","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}