Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1109/COMPSAC.2014.31guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Efficient Caching and Incrementalization of Object Queries on Collections in Programming Codes

Published: 21 July 2014 Publication History

Abstract

Object oriented programming languages raised the level of abstraction by incorporating first class query constructs explicitly into program codes. These query constructs allow programmers to express operations over collections as object queries. They also provide optimal query execution, utilizing query optimization strategies from the database domain. However, when a query is repeated in the program, it is executed as a new query. Existing approaches, however, such as Java Query Language (JQL), which caches such query constructs on collections have high run time overhead. Therefore, this paper presents an approach to reduce the run time execution of programs involving explicit queries by caching the results of repeated queries while incrementally maintaining the cached results. We performed the pattern matching of both queries and updates at compile time. We propose several cache heuristics that determine not only which queries to cache but also when to stop the incremental maintenance of cached query results. We also propose a method for the incremental maintenance of cached results of queries by handling different types of update operations such as addition, removal of objects from the collections and field value modifications of the object states. We incorporated cache replacement policies that replace the queries from the cache when the cache size is full. Our experimental results demonstrate that our approaches of caching and incrementalization have reduced execution times for the programs with object queries on collections when compared with earlier approaches such as JQL.

Cited By

View all
  • (2016)Dynamically Composing Collection Operations through Collection PromisesProceedings of the 11th edition of the International Workshop on Smalltalk Technologies10.1145/2991041.2991049(1-5)Online publication date: 23-Aug-2016
  • (2016)Demand-driven incremental object queriesProceedings of the 18th International Symposium on Principles and Practice of Declarative Programming10.1145/2967973.2968610(228-241)Online publication date: 5-Sep-2016

Index Terms

  1. Efficient Caching and Incrementalization of Object Queries on Collections in Programming Codes
      Index terms have been assigned to the content through auto-classification.

      Recommendations

      Comments

      Please enable JavaScript to view thecomments powered by Disqus.

      Information & Contributors

      Information

      Published In

      cover image Guide Proceedings
      COMPSAC '14: Proceedings of the 2014 IEEE 38th Annual Computer Software and Applications Conference
      July 2014
      651 pages
      ISBN:9781479935758

      Publisher

      IEEE Computer Society

      United States

      Publication History

      Published: 21 July 2014

      Author Tag

      1. Run time, Collection Operations, Query Optimization, Cache Policies

      Qualifiers

      • Article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0
      Reflects downloads up to 03 Oct 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2016)Dynamically Composing Collection Operations through Collection PromisesProceedings of the 11th edition of the International Workshop on Smalltalk Technologies10.1145/2991041.2991049(1-5)Online publication date: 23-Aug-2016
      • (2016)Demand-driven incremental object queriesProceedings of the 18th International Symposium on Principles and Practice of Declarative Programming10.1145/2967973.2968610(228-241)Online publication date: 5-Sep-2016

      View Options

      View options

      Get Access

      Login options

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media