Efficient Processing of Continuous Queries Utilizing F-relationship in Stock Databases

Sanghyun Park1, You-min Ha2, Chihyun Park3 and Sang-Wook Kim4

  1. Faculty of Computer Sciences, Yonsei University
    sanghyun@cs.yonsei.ac.kr
  2. Software Center of Samsung Electronics Co., Ltd.
    blueisle78@gmail.com
  3. Korea Institute of Science and Technology Information
    chihyun.park@kisti.re.kr
  4. Faculty of Computer Science and Engineering, Hanyang University
    wook@hanyang.ac.kr

Abstract

This paper analyzes the properties of user queries in a system for stock investment recommendation, and defines the F-relationship, which is a new type of a relationship between two queries. A query is composed of user defined conditions for an interesting stock item and is systematically invoked whenever the price of that stock item is changed. An F-relationship between two queries Q1 and Q2 means that, if the recommendation type of a preceding query Q1 is X, then its following query Q2 always has X as its recommendation type, where the recommendation type is one of SELL, HOLD, BUY, and NONE. If there is an F-relationship between Q1 and Q2, the recommendation type of Q2 is decided immediately by that of Q1, therefore we can keep Q2 from being actually processed. To exploit this fact, we suggest two methods in this paper. The former analyzes all the F-relationships among user queries in the system and represents them as a graph. The latter searches the graph and decides the order of queries to be processed, which makes the number of unexecuted queries maximized. With these methods, a large portion of user queries are not actually processed. As a result, the performance of processing all the queries is greatly improved. We examined the superiority of the suggested methods through a variety of experiments using real-world stock market data. According to the results of our experiments, the overall time of continuous query processing with our proposed methods has reduced to less than 10% of that with the traditional method.

Key words

Stock databases, Continuous query processing, F-relationship

Digital Object Identifier (DOI)

https://doi.org/10.2298/CSIS141101042P

Publication information

Volume 13, Issue 1 (January 2016)
Year of Publication: 2016
ISSN: 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Park, S., Ha, Y., Park, C., Kim, S.: Efficient Processing of Continuous Queries Utilizing F-relationship in Stock Databases. Computer Science and Information Systems, Vol. 13, No. 1, 131–149. (2016), https://doi.org/10.2298/CSIS141101042P