KR20040009126A - Apparatus and method of low-load statistics processing in data base management system - Google Patents

Apparatus and method of low-load statistics processing in data base management system Download PDF

Info

Publication number
KR20040009126A
KR20040009126A KR1020020042962A KR20020042962A KR20040009126A KR 20040009126 A KR20040009126 A KR 20040009126A KR 1020020042962 A KR1020020042962 A KR 1020020042962A KR 20020042962 A KR20020042962 A KR 20020042962A KR 20040009126 A KR20040009126 A KR 20040009126A
Authority
KR
South Korea
Prior art keywords
data
database
statistical
automatic
statistics
Prior art date
Application number
KR1020020042962A
Other languages
Korean (ko)
Inventor
김동훈
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020020042962A priority Critical patent/KR20040009126A/en
Publication of KR20040009126A publication Critical patent/KR20040009126A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE: A low-load statistics processing device for a database system and a method thereof are provided to reduce the system load and to shorten a search time by searching and statistically processing a data table automatically and periodically, storing a result in a statistics table for each sort, and offering data searched from only the statistics database. CONSTITUTION: A database(370) stores the data inputted/output from users(310). A DBMS(DataBase Management System)(350) manages the data input/output of the database. An automatic statistics processing part(390) statistically processes the data stored in the database automatically and periodically. An application program(330) transforms a data request order from the user into an SQL(Structured Query Language) recognizable to the DBMS and transfers it. The automatic statistics processing part comprises a timer(391) and an automatic collection module(393).

Description

데이터 베이스 시스템의 저부하 통계처리 장치 및 방법{Apparatus and method of low-load statistics processing in data base management system}Apparatus and method of low-load statistics processing in data base management system}

본 발명은 데이터 베이스(data base) 시스템에 관한 것으로, 특히 대용량의 자료를 처리하는 데이터 베이스 시스템에서의 통계처리 방법 및 수행 속도를 향상시킬 수 있는 데이터 베이스 시스템의 저부하 통계처리 장치 및 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system, and more particularly, to a statistical processing method and a low load statistical processing apparatus and method of a database system capable of improving performance speed in a database system processing a large amount of data. will be.

데이터 베이스는 그 내용을 쉽게 접근하여 처리하고 갱신할 수 있도록 구성된 데이터의 집합체이다. 가장 널리 보급된 데이터 베이스는 데이터를 다양한 방법으로 접근하고 재구성할 수 있도록 정의한 테이블형의 데이터 베이스인 관계형 데이터 베이스(relational database)이다.A database is a collection of data organized to make it easy to access, process, and update its contents. The most widespread database is a relational database, a tabular database that defines data that can be accessed and reorganized in a variety of ways.

관계형 데이터 베이스는 1970년에 IBM의 E.F.Codd에 의해 개발되었다. 관계형 데이터 베이스는 일련의 정형화된 테이블로 구성된 데이터 항목들의 집합체로서, 그 데이터들은 데이터 베이스 테이블을 재구성하지 않더라도 다양한 방법으로 접근하거나 조합될 수 있다.The relational database was developed in 1970 by IBM's E.F.Codd. A relational database is a collection of data items consisting of a series of structured tables that can be accessed or combined in various ways without reorganizing the database table.

데이터 베이스 시스템은 다수의 컴퓨터 사용자들이 데이터 베이스 안에 데이터를 기록하거나 접근할 수 있도록 하는 시스템으로, 데이터 베이스 내의 정보를 검색하거나, 저장하기 편리하고 효율적인 환경을 제공하는데 그 목적이 있다.A database system is a system that allows a large number of computer users to record or access data in a database. The database system provides a convenient and efficient environment for searching or storing information in a database.

종래의 데이터 베이스 시스템의 구성은 도 1과 같다.The configuration of a conventional database system is shown in FIG.

도 1을 참조하면, 다수의 사용자(110)와, 상기 사용자(110)가 사용하는 단말의 응용 소프트웨어(130)와, 상기 응용소프트웨어(130)로부터 전송되는 질의에 따라 데이터 베이스를 검색하여 자료를 제공하고 데이터 베이스를 관리하는 DBMS(150)와, 데이터 베이스(170)를 포함하여 구성된다.Referring to FIG. 1, a database is searched for data according to a plurality of users 110, application software 130 of a terminal used by the user 110, and a query transmitted from the application software 130. It is configured to include a DBMS 150 and a database 170 to provide and manage the database.

상기에서 특히, 데이터 베이스(170)는 다수의 데이터 테이블 1, 2(171, 173)과, 사용자의 자료 요청에 의한 필요한 데이터만을 임시로 저장하여 추출하는 조인 테이블(175)과, 데이터 베이스(170)에 저장된 데이터의 통계자료를 저장하는 통계테이블(177)을 포함하여 구성된다.In particular, the database 170 includes a plurality of data tables 1 and 2 (171 and 173), a join table 175 for temporarily storing and extracting only data required by a user's data request, and a database 170. It is configured to include a statistics table 177 for storing the statistical data of the data stored in the).

또한, 상기의 시스템에서는 간략히 사용자(110)와, 응용소프트웨어(130)를 단일하게 구성하였으나 이것은 설명을 위한 예만을 나타낸 것으로 실제로는 다수의 사용자와 각각의 사용자가 사용하는 응용 소프트웨어가 DBMS(150)와 연결되어 데이터를 입력, 출력하는 시스템이다.In addition, in the above system, the user 110 and the application software 130 are briefly configured. However, this is only an example for explanation. In reality, a plurality of users and application software used by each user may use the DBMS 150. It is a system that inputs and outputs data connected with.

마찬가지로, 데이터 베이스(170)의 데이터 테이블 역시 도 1의 구성에는 2개의 테이블로 간략화 하였으나, 자료의 종류 및 크기에 따라 다수의 데이터 테이블을 구비하여 많은 양의 데이터를 저장할 수 있는 데이터 베이스이다.Similarly, although the data table of the database 170 is simplified to two tables in the configuration of FIG. 1, it is a database that can store a large amount of data with a plurality of data tables according to the type and size of data.

또한, 상기 DBMS(150)는 다수의 컴퓨터 사용자들이 데이터 베이스 안에 데이터를 기록하거나 접근할 수 있도록 해주는 프로그램으로 사용자 요구사항들이나 다른 프로그램이 요구사항들을 관리함으로써, 사용자들이나 다른 프로그램들이 실제로 그 데이터가 저장매체의 어디 곳에 저장되어 있는지를 이해하지 않고서도, 다중 사용자환경의 그 누구라도 데이터를 이용할 수 있도록 해준다.In addition, the DBMS 150 is a program that allows a large number of computer users to record or access data in a database, so that user requirements or other programs manage requirements so that users or other programs can actually store the data. It makes it possible for anyone in a multiuser environment to use data without having to understand where it is stored on the media.

사용자의 요구사항들을 처리함에 있어, DBMS는 데이터의 무결성과 오직 허가된 사용자들만이 데이터에 접근할 수 있도록 하는 보안성을 보완하며, 일반적인 형태의 DBMS는 관계형 데이터 베이스 관리 시스템인 RDBMS이다.In dealing with user requirements, the DBMS complements the integrity of the data and the security that only authorized users have access to the data. A typical type of DBMS is an RDBMS, a relational database management system.

상기 RDBMS는 표준화된 사용자 및 프로그램 인터페이스 SQL(structured query language; 구조적 질의어)를 이용한다.The RDBMS uses a standardized user and program interface SQL (structured query language).

상기와 같이 구성되는 DBMS의 기술은 더 크고 많은 자료의 처리, 분산형 데이터 베이스 개발과 실용화, 데이터의 형태적 변화에 따른 화상, 음성 등을 포함하는 멀티 미디어 데이터 베이스의 개발, 객체지향의 개념을 도입한 객체지향 데이터 베이스 관리 시스템 등으로 발전하고 있다.The technology of the DBMS structured as described above is based on the concept of object-oriented, development of a multimedia database including the processing of larger and larger data, development and commercialization of distributed databases, image and audio according to the morphological change of data, and the like. It is developing into the object-oriented database management system introduced.

도 2는 종래의 데이터 베이스 시스템의 통계처리 방법의 동작순서를 나타낸 플로우 차트이다.2 is a flowchart illustrating an operation procedure of a statistical processing method of a conventional database system.

도 2를 참조하면, 사용자(110)가 데이터 자료를 응용소프트웨어(130)로 요청하면(S201), 응용 소프트웨어(130)는 DBMS(150)에서 인식할 수 있는 SQL 언어를 이용하여 질의어를 만들고 DBMS(130)에 자료를 요청한다(S203).Referring to FIG. 2, when the user 110 requests data data from the application software 130 (S201), the application software 130 creates a query using a SQL language recognizable by the DBMS 150 and generates a DBMS. Request data to 130 (S203).

상기 자료 요청에 따라, DBMS는 해당 데이터 테이블의 자료를 검색하고(S205), 해당되는 데이터 테이블의 자료를 조인테이블(175)로 임시 저장한다 (S207). 이것은 일반적인 데이터 베이스 시스템의 경우 2개 이상의 데이터 테이블이 서로 연관되어 있는 경우가 대부분이므로 해당되는 테이블을 연결할 수 있는 조인 테이블(175)을 임시로 생성하여 저장하는 것이다.In response to the data request, the DBMS retrieves the data of the corresponding data table (S205) and temporarily stores the data of the corresponding data table as the join table 175 (S207). In the general database system, since two or more data tables are often associated with each other, a join table 175 for temporarily connecting the corresponding tables is temporarily created and stored.

상기 조인 테이블(175)을 통하여 사용자가 원하는 자료를 획득하면(S209), DBMS(150)는 데이터를 응용 소프트웨어(130)로 전달하고(S211), 응용소프트웨어(130)에서는 수신된 자료를 기존의 통계자료와 비교하여 새로이 갱신된 자료가 있는지를 확인하여 통계테이블(177)에 저장하도록 DBMS(150)에 요청하고(S213), 자료를 사용자에게 제공한다(S215).When the user acquires the desired data through the join table 175 (S209), the DBMS 150 transmits the data to the application software 130 (S211), and the application software 130 transmits the received data. It checks whether there is newly updated data compared to the statistical data, requests the DBMS 150 to store the data in the statistics table 177 (S213), and provides the data to the user (S215).

이때, 상기 사용자가 요청한 자료가 이미 통계 테이블(177)에 저장되어 있던 자료라면, DBMS(150)는 데이터 테이블의 검색을 거치지 않고 바로 통계테이블(177)의 자료를 응용소프트웨어(130)에 전달해 주어 사용자에게 제공할 수 있도록 한다.In this case, if the data requested by the user is already stored in the statistics table 177, the DBMS 150 passes the data of the statistics table 177 directly to the application software 130 without retrieving the data table. Make it available to the user.

그러나, 종래의 통계처리방법은 통계자료를 수집하기 위하여 접근하는 테이블의 자료양이 많아지거나, 통계항목의 수가 증가하면 이에 비례하여 DBMS가 테이블에 접근하여 자료를 처리하는 시간이 증가하고, 이에 따라 전체 시스템 운영 및 CPU 점유시간이 증가하여 부하가 가중되고, 2개 이상의 연결이 되어지는 조인 테이블을 구성할 경우에는 DBMS에서 처리해야 하는 데이터의 양도 많아지게 되므로 시스템 운영에 영향을 미칠 수 있는 문제가 발생한다.However, in the conventional statistical processing method, when the amount of data in a table that is accessed to collect statistical data increases or the number of statistics items increases, the time required for the DBMS to access the table and process the data increases proportionally. Increasing total system operation and CPU occupancy time increases the load, and when you configure join tables with two or more connections, the amount of data that the DBMS needs to process increases, which may affect system operation. Occurs.

또한, 시스템 효율을 높이기 위하여 요청했던 데이터를 통계 테이블에 저장하는 방식에서, 통계 테이블에 저장하는 방식이 체계적이지 못하여 비효과적으로 작성되는 경우가 많아서 실제 데이터 테이블을 검색하는 것과, 통계 테이블을 검색하는 시간이 거의 비슷하여 효과를 발휘하지 못하고, 오히려 이중 작업을 초래할 수 있는 문제가 발생할 수도 있다.In addition, in the method of storing the requested data in the statistics table in order to improve the system efficiency, the method of storing the data in the statistics table is often ineffective because it is not systematically searched. This is so similar that it does not work, but may cause problems that can result in double operation.

특히, 시스템 운영이 빈번한 시간에 사용자의 통계작업 요청이 발생하는 경우는 시스템에서 장애를 발생시킬 확률이 크고, 이와 같이 시스템 운영과 통계작업이 같은 시간대에 일어날 수 있으므로 문제가 발생하고, 분리하여 운영하지 못하는 단점이 있다.In particular, if a user's request for statistical work occurs frequently during system operation, there is a high probability of causing a failure in the system. Thus, a problem occurs because the system operation and statistical work can occur at the same time. There is a drawback to not doing it.

본 발명의 목적은 대용량의 데이터 베이스 관리 시스템에서 일정한 주기마다 자동으로 데이터 테이블을 검색하여 통계처리를 하여 그 결과를 종류별로 통계테이블에 저장하여 두도록 하여, 사용자의 자료요청에 대하여 통계테이블만을 검색하여자료를 제공함으로써, 시스템 부하를 줄이고, 빠른 검색시간을 제공할 수 있도록 하는 데이터 베이스 시스템의 저부하 통계처리 장치 및 방법을 제공하는데 그 목적이 있다.An object of the present invention is to automatically search the data table at regular intervals in a large database management system to perform statistical processing and to store the result in a statistical table for each type, to retrieve only the statistical table for the user's data request The purpose of the present invention is to provide a low-load statistical processing apparatus and method for a database system that can reduce the system load and provide a fast search time.

도 1은 종래의 데이터 베이스 시스템의 구성을 나타낸 블록도.1 is a block diagram showing the configuration of a conventional database system.

도 2는 종래의 데이터 베이스 시스템의 통계처리 방법의 동작순서를 나타낸 블록도.2 is a block diagram showing an operation procedure of a statistical processing method of a conventional database system.

도 3은 본 발명의 실시 예에 따른 데이터 베이스 시스템의 저부하 통계처리 장치의 구성도를 나타낸 블록도.Figure 3 is a block diagram showing the configuration of a low load statistics processing apparatus of a database system according to an embodiment of the present invention.

도 4는 본 발명의 실시 예에 따른 데이터 베이스 시스템의 저부하 통계처리방법의 동작순서를 나타낸 플로우 차트.4 is a flowchart illustrating an operation procedure of a low load statistical processing method of a database system according to an exemplary embodiment of the present invention.

본 발명에 따른 데이터 베이스 시스템의 저부하 통계처리 장치는,Low load statistical processing apparatus of the database system according to the present invention,

다수의 사용자로부터 입력 및 출력되는 데이터를 저장하는 다수의 데이터 테이블과, 상기 데이터 테이블에 저장되는 데이터 중에서, 일정 수집주기의 정수배 만큼의 시간동안 생성된 데이터만을 임시로 저장하도록 하는 임시 데이터 테이블과, 통계처리를 위한 자료합산 작업을 위한 조인 테이블과, 상기 다수의 데이터 테이블에 저장된 데이터를 종류별로 통계 처리하여 저장하는 통계테이블을 포함하여 구성되는 데이터 베이스와;A plurality of data tables for storing data input and output from a plurality of users, a temporary data table for temporarily storing only data generated for an integer multiple of a predetermined collection period among data stored in the data table; A database including a join table for data summing operation for statistical processing and a statistics table for statistically processing and storing data stored in the plurality of data tables for each type;

상기 데이터 베이스에 저장된 데이터의 입력 및 출력을 관리하는 데이터 베이스 관리 시스템과;A database management system for managing input and output of data stored in the database;

상기 데이터 베이스에 저장된 데이터를 상기 일정 수집주기 마다 통계 처리하여 통계테이블에 저장하는 자동 통계처리부를 포함하여 구성되는 것을 특징으로 한다.And an automatic statistics processing unit for statistically processing the data stored in the database at the predetermined collection period and storing the data in a statistical table.

바람직하게, 상기 자동 통계처리부는,Preferably, the automatic statistics processing unit,

일정 수집주기를 판단하기 위한 타이머와,A timer for determining a schedule collection cycle,

상기 타이머에 의한 일정 수집주기마다 데이터 베이스의 자료를 통계 처리하여 통계 테이블에 저장하는 자동수집 모듈을 포함하여 구성되는 것을 특징으로 한다.And an automatic collection module for statistically processing data in a database at a predetermined collection cycle by the timer and storing the data in a statistics table.

바람직하게, 상기 통계 테이블에 저장되는 통계자료는,Preferably, the statistical data stored in the statistics table,

사용자의 설정에 의한 통계형식에 의하여 분류되어 저장되는 것을 특징으로 한다.And classified according to a statistical format according to a user's setting.

또한, 본 발명에 따른 데이터 베이스 시스템의 저부하 통계처리 방법은,In addition, the low load statistical processing method of the database system according to the present invention,

자동 통계처리부에서 일정 수집주기 마다 데이터 베이스의 통계처리를 하여 통계 테이블에 저장하는 단계;Performing statistical processing of the database at a predetermined collection cycle by the automatic statistical processing unit and storing the statistical table;

상기 통계 테이블에 저장된 통계 데이터를 사용자가 응용 소프트웨어를 통하여 요구하는 단계;Requesting, by an application software, statistical data stored in the statistical table;

상기 응용프로그램에서 데이터 베이스 관리 시스템으로 자료요청을 하여 통계 테이블의 자료를 검색하여 사용자에게 제공하는 단계를 포함하여 구성되는 것을 특징으로 한다.And requesting data from the application program to the database management system to retrieve data from the statistics table and provide the data to the user.

바람직하게, 상기 자동 통계처리부에서 일정 수집주기 마다 데이터 베이스의 통계처리를 하는 것은,Preferably, the statistical processing of the database every predetermined collection period in the automatic statistical processing unit,

타이머가 동작하여 자동수집 주기를 판단하는 단계;Determining an automatic collection cycle by operating a timer;

상기 판단결과, 자동수집 주기마다 자동 수집 모듈에서 데이터 베이스 관리 시스템으로 자동 통계처리를 요구하는 단계;Requesting automatic statistical processing from the automatic collection module to the database management system for each automatic collection cycle as a result of the determination;

상기 데이터 베이스 관리 시스템에서 자동 통계처리를 위하여 다수의 데이터 테이블에 저장된 데이터 중에서 일정 시간 전으로부터 현재까지 저장된 데이터만을추출하여 임시 테이블로 복사하고, 통계처리를 위한 통계형식별 데이터를 조인하여 조인테이블에 저장하여 결과치를 생성하는 단계;The database management system extracts only the data stored from a certain time ago to the present from the data stored in a plurality of data tables for automatic statistical processing, copies the data into a temporary table, joins data by statistical type for statistical processing, and joins the join table. Storing and generating a result;

상기 결과치를 통계형식에 따라 통계테이블에 분류하여 저장하는 단계를 포함하여 구성되는 것을 특징으로 한다.And classifying and storing the result in a statistical table according to a statistical format.

바람직하게, 상기 임시테이블에 저장되는 데이터 추출을 위한 일정시간은,Preferably, a predetermined time for extracting data stored in the temporary table,

수집주기의 정수배 또는 사용자의 설정에 따른 시간인 것을 특징으로 한다.Characterized in that it is an integer multiple of the collection cycle or time according to the user's setting.

상기와 같이 구성되는 본 발명에 따른 데이터 베이스 시스템의 저부하 통계처리 장치 및 방법에 대하여 첨부된 도면을 참조하여 설명하면 다음과 같다.The low load statistics processing apparatus and method of the database system according to the present invention configured as described above will be described with reference to the accompanying drawings.

도 3은 본 발명의 실시 예에 따른 데이터 베이스 시스템의 저부하 통계처리 장치의 구성도를 나타낸 블록도이다.3 is a block diagram illustrating a configuration of a low load statistical processing apparatus of a database system according to an exemplary embodiment of the present invention.

도 3을 참조하면, 다수의 사용자(310)로부터 입출력되는 데이터를 저장하는 데이터베이스(370)와, 상기 데이터 베이스(370)의 데이터 입출력을 관리하는 DBMS(350)와, 상기 데이터 베이스(370)에 저장된 데이터를 일정한 수집주기마다 자동으로 통계 처리하는 자동 통계처리부(390)와, 사용자(310)로부터의 데이터 요구 명령을 DBMS(350)가 알 수 있는 SQL로 변환하여 전달하는 응용소프트웨어(330)를 포함하여 구성되는 것을 특징으로 한다.3, a database 370 storing data input and output from a plurality of users 310, a DBMS 350 managing data input and output of the database 370, and a database 370. Automatic statistics processing unit 390 for automatically statistics the stored data at a predetermined collection period, and application software 330 for converting the data request command from the user 310 to SQL that the DBMS 350 knows and delivers it. Characterized in that it comprises a.

특히, 상기 자동 통계처리부(390)는 수집주기를 체크하여 자동 통계처리 여부를 알리는 타이머(291)와, DBMS(350)로 통계처리를 요구하여 통계처리를 하는 자동수집모듈(393)을 포함하여 구성된다.In particular, the automatic statistics processing unit 390 includes a timer 291 for checking whether or not the automatic statistics processing by checking the collection period, and the automatic collection module 393 to request statistical processing to the DBMS 350 to perform statistical processing; It is composed.

또한, 데이터 베이스(370)는 다수의 데이터 테이블 1, 2(371, 372)와, 통계처리를 위하여 데이터 테이블 1, 2(371, 372)에 저장되는 데이터 중에서 수집주기의 2~3배정도의 최근 시간동안 저장된 데이터만을 추출하여 임시 저장하기 위한 임시 데이터 테이블(373)과, 통계항목에 따라 연관된 데이터를 조합하기 위한 조인테이블(374)과, 통계테이블(375)을 포함하여 구성된다.In addition, the database 370 is a plurality of data tables 1, 2 (371, 372), and the data stored in the data tables 1, 2 (371, 372) for the statistical processing of about 2 to 3 times the recent collection period And a temporary data table 373 for extracting and temporarily storing only the data stored for a time, a join table 374 for combining related data according to statistics items, and a statistics table 375.

이때, 상기 통계 테이블(375)은 통계처리항목에 따라 각각 구분되어 통계자료가 저장되는데, 본 발명의 실시 예에서는 시간(375a), 종류(375b), 최종 집계(375c)를 위한 세 개의 테이블만을 표시하였으며, 사용자의 설정에 따라 다양한 통계항목 테이블로 구분하여 통계자료를 저장할 수 있다.In this case, the statistical table 375 is divided according to the statistical processing items, and the statistical data is stored. In the embodiment of the present invention, only three tables for the time 375a, the type 375b, and the final aggregation 375c are used. The statistics can be saved by dividing them into various statistical item tables according to the user's settings.

상기와 같이 구성된 시스템에서의 통계처리방법은 다음과 같다.The statistical processing method in the system configured as described above is as follows.

도 4는 본 발명의 실시 예에 따른 데이터 베이스 시스템의 저부하 통계처리방법의 동작순서를 나타낸 플로우 차트이다.4 is a flowchart illustrating an operation procedure of a low load statistical processing method of a database system according to an exemplary embodiment of the present invention.

도 4를 참조하면, 자동 통계처리부에서 시행하는 자동 통계처리의 절차를 나타낸 것으로, 자동 통계처리부(390)에서는 타이머(391)가 사용자의 설정에 따른 일정 수집주기를 체크하여, 수집주기가 되면(S401), 자동 수집모듈(393)에 수집 주기가 되었음을 알린다.Referring to Figure 4, it shows a procedure of automatic statistical processing performed by the automatic statistical processing unit, the automatic statistical processing unit 390 checks the schedule collection period according to the user's setting, when the collection cycle ( S401), the automatic collection module 393 informs that the collection cycle.

이에 따라 상기 자동 수집모듈(393)은 자동 통계처리를 DBMS(350)에 요구하고(S403), DBMS(350)는 통계처리를 위하여 데이터 테이블(371, 372)의 데이터 중에서 통계 항목별로 연관성이 있는 데이터 중에서 수집주기의 2~3배 이상의 시간 전부터의 최신 데이터를 추출하여 임시 데이터 테이블(373)에 저장하고, 조합하여 조인 테이블(374)에 저장한다(S405).Accordingly, the automatic collection module 393 requests the automatic statistical processing to the DBMS 350 (S403), and the DBMS 350 has relevance for each statistical item among the data of the data tables 371 and 372 for statistical processing. The latest data from the data two to three times or more of the collection period is extracted from the data, stored in the temporary data table 373, and combined and stored in the join table 374 (S405).

상기 조인테이블(374)에 저장된 값을 이용하여 결과치를 생성하고(S409), 결과치의 통계 항목별로 통계 테이블에 저장한다(S411).A result value is generated using the value stored in the join table 374 (S409), and stored in a statistical table for each statistical item of the result value (S411).

상기와 같이 자동 통계처리부(390)는 일정한 수집 주기로 자동으로 데이터 베이스(370)의 데이터들을 통계 처리하여 저장하므로, 이러한 수집 주기를 데이터 베이스를 사용하지 않는 시간으로 설정하면 통계 수집이 용이하고, 다른 사용자들에 의한 부하가 증가되는 문제가 해결된다.As described above, the automatic statistical processing unit 390 automatically processes and stores the data of the database 370 at a predetermined collection period. Therefore, if the collection period is set to a time when the database is not used, statistics collection is easy, and other The problem of increased load by users is solved.

또한, 상기 통계처리에 있어서 데이터 테이블에 저장된 데이터 중에서 수집주기의 2~3배의 시간 이전에 저장된 최신의 데이터만을 저장하는 임시 테이블을 구성하여 최신 데이터만을 추출하여 통계 처리하도록 함으로써, 데이터 베이스 검색시간을 줄이는 효과가 있으며, 실제 조인해야 하는 자료의 양이 일정한 수집주기의 2~3배 이전의 자료만 다루게 되므로 일정한 속도록 작업을 수행할 수 있게 된다.In addition, in the statistical processing, a temporary table for storing only the latest data stored two to three times before the collection period among the data stored in the data table is configured to extract only the latest data and perform statistical processing, thereby searching the database. In addition, the data to be joined is only handled two to three times the amount of data collected before a certain collection cycle, so that a certain speed can be achieved.

이때, 임시 데이터 테이블에 수집되는 데이터의 양이 수집주기의 2~3배 이전의 최신 데이터만을 저장하는 것은 만일에 발생할 수 있는 데이터의 누락을 줄이기 위함이며, 가장 최대의 효과를 위해서는 바로 이전 수집주기 이후에 저장된 최신의 데이터만을 선택하여 조인하는 것이 최대의 효율을 올릴 수 있다.In this case, storing only the latest data in which the amount of data collected in the temporary data table is 2 to 3 times older than the collection cycle is to reduce the possibility of data loss that may occur in the case. Afterwards, selecting and joining only the latest stored data can maximize efficiency.

그리고, 상기 자동 통계 처리된 데이터를 통계테이블에 저장하는데 있어서도, 각 통계 항목별로 저장함으로써, 데이터의 구분이 용이하도록 관리할 수 있는 것이다. 즉, 시간별 테이블(375a)과, 종류별 테이블(375b)과, 집계용 테이블(375c)과 같이 통계항목에 따라 각각의 데이터를 분류하여 저장하는 것으로, 사용자의 설정에 의하여 구별되는 통계 테이블은 더욱 늘어날 수 있다.In addition, even when storing the data automatically processed in the statistical table, by storing each of the statistical items, it is possible to manage so that the data can be easily distinguished. That is, the data is classified and stored according to statistical items, such as the hourly table 375a, the table 375b, and the aggregation table 375c, and the statistical table distinguished by the user's setting is further increased. Can be.

또한, 통계테이블에 자동 통계 처리된 데이터를 저장하는 도중에 같은 내용이 나온다면 그 시점으로부터 기록을 중지함으로써, 중복 데이터를 다시 저장하는 것을 방지할 수 있다.In addition, if the same contents appear in the middle of storing the automatic statistically processed data in the statistics table, the recording can be prevented from being stored again by stopping the recording from that point in time.

이때, 통계테이블의 구성은 수행속도를 높이기 위하여 숫자로만 구성하고, 5~6개의 간단한 필드로 구성하는 것이 효과적이다.At this time, it is effective to configure the statistics table only with numbers and 5-6 simple fields to increase the performance speed.

상기와 같이, 사용자들이 DBMS(350)에 접속하는 시간 이외에 자동으로 통계처리를 하여두면, 사용자들이 실제로 통계데이터를 필요로 하는 경우에는 응용프로그램(330)을 통해 자료 요청 명령을 전달하고, 상기 응용프로그램(330)이 DBMS(350)에서 알 수 있는 SQL 언어로 명령어를 구성하여 전달해서 DBMS(350)에서는 실제로 많은 양의 데이터 테이블을 검색하는 것이 아니라 통계테이블만을 검색하여 자료를 제공할 수 있어서, 사용자들이 자료를 요구하여 제공받을 수 있는 시간이 줄어들고, 실제 통계 처리를 사용자들이 많이 접속하지 않는 시간에 함으로써 시스템 부하가 줄어들게 된다.As described above, if the user automatically performs statistical processing other than the time to access the DBMS 350, if the user actually needs the statistical data, and transmits a data request command through the application 330, the application Since the program 330 constructs and delivers commands in an SQL language known to the DBMS 350, the DBMS 350 can provide data by searching only a statistical table instead of searching a large amount of data tables. The amount of time users can request and receive data is reduced, and the system load is reduced by real time statistical processing during times when users are not connected.

이상에서 설명한 바와 같이, 본 발명에 따른 데이터 베이스 시스템의 저부하 통계처리 장치 및 방법은 데이터를 관리하는 데이터 베이스 관리시스템에서 사용자의 접속이 드문 시간을 이용하여 일정 수집주기를 적용하여 자동으로 데이터들의 통계처리를 하여 항목별로 저장하도록 하고, 이후에 사용자가 자료요청을 할 경우 통계 테이블만을 검색하여 간단히 자료를 제공하도록 함으로써, 통계처리에 따른 시스템의 부하를 줄이고, 데이터의 항목별 통계값 관리를 쉽게 하여 사용자에게 보다 빠른 검색속도로 자료를 제공할 수 있는 효과가 있다.As described above, the low-load statistical processing apparatus and method of the database system according to the present invention is automatically applied by applying a certain collection period using a rare time of the user in the database management system that manages data. By processing the statistics and storing them by item, and afterwards, when the user requests data, the system simply searches the statistics table to provide the data, thereby reducing the load on the system due to the statistics processing and easily managing the statistics of each item of the data. Therefore, the data can be provided to the user at a faster search speed.

Claims (6)

다수의 사용자로부터 입력 및 출력되는 데이터를 저장하는 다수의 데이터 테이블과, 상기 데이터 테이블에 저장되는 데이터 중에서, 일정 수집주기의 정수배만큼의 시간동안 생성된 데이터만을 임시로 저장하도록 하는 임시 데이터 테이블과, 통계처리를 위한 자료합산 작업을 위한 조인 테이블과, 상기 다수의 데이터 테이블에 저장된 데이터를 종류별로 통계 처리하여 저장하는 통계테이블을 포함하여 구성되는 데이터 베이스와;A plurality of data tables for storing data input and output from a plurality of users, a temporary data table for temporarily storing only data generated for an integer multiple of a predetermined collection period among data stored in the data table; A database including a join table for data summing operation for statistical processing and a statistics table for statistically processing and storing data stored in the plurality of data tables for each type; 상기 데이터 베이스에 저장된 데이터의 입력 및 출력을 관리하는 데이터 베이스 관리 시스템과;A database management system for managing input and output of data stored in the database; 상기 데이터 베이스에 저장된 데이터를 상기 일정 수집주기 마다 통계 처리하여 통계테이블에 저장하는 자동 통계처리부를 포함하여 구성되는 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 장치.And an automatic statistics processing unit for statistically processing the data stored in the database at the predetermined collection period and storing the data in a statistics table. 제 1항에 있어서, 상기 자동 통계처리부는The method of claim 1, wherein the automatic statistical processing unit 일정 수집주기를 판단하기 위한 타이머와,A timer for determining a schedule collection cycle, 상기 타이머에 의한 일정 수집주기마다 데이터 베이스의 자료를 통계 처리하여 통계 테이블에 저장하는 자동수집 모듈을 포함하여 구성되는 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 장치.Low load statistical processing apparatus of the database system, characterized in that it comprises an automatic collection module for statistically processing the data of the database at a predetermined collection cycle by the timer and stores in a statistical table. 제 1항에 있어서, 상기 통계 테이블에 저장되는 통계자료는,The method of claim 1, wherein the statistical data stored in the statistics table, 사용자의 설정에 의한 통계형식에 의하여 분류되어 저장되는 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 장치.Low load statistical processing apparatus of a database system, characterized in that the classification and storage according to the statistical format by the user's setting. 자동 통계처리부에서 일정 수집주기 마다 데이터 베이스의 통계처리를 하여 통계 테이블에 저장하는 단계;Performing statistical processing of the database at a predetermined collection cycle by the automatic statistical processing unit and storing the statistical table; 상기 통계 테이블에 저장된 통계 데이터를 사용자가 응용 소프트웨어를 통하여 요구하는 단계;Requesting, by an application software, statistical data stored in the statistical table; 상기 응용프로그램에서 데이터 베이스 관리 시스템으로 자료요청을 하여 통계 테이블의 자료를 검색하여 사용자에게 제공하는 단계를 포함하여 구성되는 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 방법.And requesting data from the application program to the database management system to retrieve data of the statistics table and providing the data to the user. 제 4항에 있어서, 상기 자동 통계처리부에서 일정 수집주기 마다 데이터 베이스의 통계처리를 하는 것은,The method of claim 4, wherein the statistical processing of the database by the automatic statistical processing unit at a predetermined collection period is performed. 타이머가 동작하여 자동수집 주기를 판단하는 단계;Determining an automatic collection cycle by operating a timer; 상기 판단결과, 자동수집 주기마다 자동 수집 모듈에서 데이터 베이스 관리 시스템으로 자동 통계처리를 요구하는 단계;Requesting automatic statistical processing from the automatic collection module to the database management system for each automatic collection cycle as a result of the determination; 상기 데이터 베이스 관리 시스템에서 자동 통계처리를 위하여 다수의 데이터 테이블에 저장된 데이터 중에서 일정 시간 전으로부터 현재까지 저장된 데이터만을추출하여 임시 테이블로 복사하고, 통계처리를 위한 통계형식별 데이터를 조인하여 조인테이블에 저장하여 결과치를 생성하는 단계;The database management system extracts only the data stored from a certain time ago to the present from the data stored in a plurality of data tables for automatic statistical processing, copies the data into a temporary table, joins data by statistical type for statistical processing, and joins the join table. Storing and generating a result; 상기 결과치를 통계형식에 따라 통계테이블에 분류하여 저장하는 단계를 포함하여 구성되는 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 방법.And classifying and storing the result in a statistical table according to a statistical format. 제 5항에 있어서, 상기 임시테이블에 저장되는 데이터 추출을 위한 일정시간은,The method of claim 5, wherein the predetermined time for extracting data stored in the temporary table is 수집주기의 정수배 또는 사용자의 설정에 따른 시간인 것을 특징으로 하는 데이터 베이스 시스템의 저부하 통계처리 방법.Low load statistics processing method of a database system, characterized in that the time according to the integer multiple of the collection cycle or the user's setting.
KR1020020042962A 2002-07-22 2002-07-22 Apparatus and method of low-load statistics processing in data base management system KR20040009126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020042962A KR20040009126A (en) 2002-07-22 2002-07-22 Apparatus and method of low-load statistics processing in data base management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020042962A KR20040009126A (en) 2002-07-22 2002-07-22 Apparatus and method of low-load statistics processing in data base management system

Publications (1)

Publication Number Publication Date
KR20040009126A true KR20040009126A (en) 2004-01-31

Family

ID=37318072

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020042962A KR20040009126A (en) 2002-07-22 2002-07-22 Apparatus and method of low-load statistics processing in data base management system

Country Status (1)

Country Link
KR (1) KR20040009126A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019215601A1 (en) * 2018-05-09 2019-11-14 International Business Machines Corporation Automatically optimizing resource usage on a target database management system to increase workload performance
CN116126926A (en) * 2023-01-18 2023-05-16 中远海运科技股份有限公司 Intelligent management method and system for full life cycle dynamic data of ship

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960009556A (en) * 1994-08-02 1996-03-22 박상규 Statistical Data Operation Method for Graphic Output Function of Electronic Switching System
KR20000008523A (en) * 1998-07-14 2000-02-07 김영환 Method for collecting and reporting statistical data of control station manager
KR20000039753A (en) * 1998-12-15 2000-07-05 이계철 Method for processing intelligent network application protocol(inap) operation statistical data in advanced intelligent network-intelligent peripheral(ain ip)
KR20000041885A (en) * 1998-12-24 2000-07-15 서평원 Method for managing statistics data of switching system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960009556A (en) * 1994-08-02 1996-03-22 박상규 Statistical Data Operation Method for Graphic Output Function of Electronic Switching System
KR20000008523A (en) * 1998-07-14 2000-02-07 김영환 Method for collecting and reporting statistical data of control station manager
KR20000039753A (en) * 1998-12-15 2000-07-05 이계철 Method for processing intelligent network application protocol(inap) operation statistical data in advanced intelligent network-intelligent peripheral(ain ip)
KR20000041885A (en) * 1998-12-24 2000-07-15 서평원 Method for managing statistics data of switching system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019215601A1 (en) * 2018-05-09 2019-11-14 International Business Machines Corporation Automatically optimizing resource usage on a target database management system to increase workload performance
US10691658B2 (en) 2018-05-09 2020-06-23 International Business Machines Corporation Automatically optimizing resource usage on a target database management system to increase workload performance
GB2586109A (en) * 2018-05-09 2021-02-03 Ibm Automatically optimizing resource usage on a target database management system to increase workload performance
GB2586109B (en) * 2018-05-09 2021-07-14 Ibm Automatically optimizing resource usage on a target database management system to increase workload performance
CN116126926A (en) * 2023-01-18 2023-05-16 中远海运科技股份有限公司 Intelligent management method and system for full life cycle dynamic data of ship
CN116126926B (en) * 2023-01-18 2024-05-17 中远海运科技股份有限公司 Intelligent management method and system for full life cycle dynamic data of ship

Similar Documents

Publication Publication Date Title
US7529752B2 (en) Asymmetric streaming record data processor method and apparatus
US8612421B2 (en) Efficient processing of relational joins of multidimensional data
US6470333B1 (en) Knowledge extraction system and method
CA2603901C (en) System and methods for facilitating a linear grid database with data organization by dimension
US7092954B1 (en) Optimizing an equi-join operation using a bitmap index structure
US6618729B1 (en) Optimization of a star join operation using a bitmap index structure
US8965918B2 (en) Decomposed query conditions
US6266660B1 (en) Secondary index search
US8924373B2 (en) Query plans with parameter markers in place of object identifiers
JP3742177B2 (en) Parallel database system routine execution method
WO1998020432A1 (en) Automatic transmission of legacy system data
US9047354B2 (en) Statement categorization and normalization
CN113297057A (en) Memory analysis method, device and system
KR101136457B1 (en) Method and apparatus for analyzing SQL Trace in DataBase Management System
CN109117426B (en) Distributed database query method, device, equipment and storage medium
Calì et al. IBIS: Semantic data integration at work
KR101955376B1 (en) Processing method for a relational query in distributed stream processing engine based on shared-nothing architecture, recording medium and device for performing the method
Knoll et al. An integrated approach to semantic evaluation and content-based retrieval of multimedia documents
Dvoretskyi et al. Data Utility Assessment while Optimizing the Structure and Minimizing the Volume of a Distributed Database Node.
KR20040009126A (en) Apparatus and method of low-load statistics processing in data base management system
US20200301922A1 (en) Multiform persistence abstraction
Yafooz et al. Model for automatic textual data clustering in relational databases schema
Gupta et al. Provenance in context of Hadoop as a Service (HaaS)-State of the Art and Research Directions
US11860864B1 (en) Materialized views as a service for analytics
US6219663B1 (en) Method and computer program product for implementing pushdown query in a distributed object management system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application