KR20010063059A - Method for optimizing database search operation - Google Patents
Method for optimizing database search operation Download PDFInfo
- Publication number
- KR20010063059A KR20010063059A KR1019990059920A KR19990059920A KR20010063059A KR 20010063059 A KR20010063059 A KR 20010063059A KR 1019990059920 A KR1019990059920 A KR 1019990059920A KR 19990059920 A KR19990059920 A KR 19990059920A KR 20010063059 A KR20010063059 A KR 20010063059A
- Authority
- KR
- South Korea
- Prior art keywords
- type
- data
- database
- search
- action
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
Abstract
Description
본 발명은 데이터 베이스 서비스를 위한 시스템에 관한 것으로, 특히 데이터 베이스 검색을 최적화하기 위한 방법에 관한 것이다.The present invention relates to a system for database services, and more particularly to a method for optimizing database search.
오늘날의 사회는 정보화 기술의 발전에 힘입어 더 나은 미래 사회 구현을 위해 끊임없는 전진을 계속해 오고 있다. 이는 세계적으로 공통된 현상으로서 전 분야에 걸쳐 대변혁이 발생하고 있음을 의미한다. 경제구조가 변화함에 따라 기술개발이 중요하게 되고, 이는 컴퓨터 기술발전 및 보급확대와 DBMS의 활용확대, 정보통신망의 급속한 발전으로 이어졌다. 이 3가지 분야는 복합적 관계로 지속발전하고있으며, 이러한 기술적 동향에 힘입어 기업에 있어서는 정보관리의 중요성이 부각되기 시작하였고 여러 가지 DBMS(Data Base Management System)를 이용한 중요한 데이터베이스가 구축, 운영되고 있다. 우리 나라 기업에 있어서의 인하우스(사내) 데이터베이스는 PC(Personal Computer)에서 대형컴퓨터에 이르기까지 기업특성에 알맞는 DBMS를 사용하여 데이터베이스를 구축, 운영하는 등 상당한 진전을 보이고 있다.Today's society continues to move forward with the development of information technology to make a better future society. This is a common phenomenon in the world, which means that major revolutions are occurring in all areas. As the economic structure changes, technology development becomes important, which has led to the development and expansion of computer technology, the utilization of DBMS, and the rapid development of information and communication network. These three fields continue to develop as a complex relationship, and thanks to these technological trends, the importance of information management has begun to emerge from companies, and important databases using various DBMSs (Data Base Management System) are being built and operated. . In-house (in-house) databases for Korean companies are making significant progress, such as building and operating a database using a DBMS suitable for the company's characteristics, from personal computers to large computers.
이러한 데이터 베이스 관리 시스템에서, 종래의 망관리 시스템 로그 데이터 검색을 위한 테이블 구조의 일 예는 하기와 같으며, 그에 따른 로그 브라우저의 화면 구성은 도 1과 같다.In such a database management system, an example of a table structure for retrieving log data of a conventional network management system is as follows, and the screen configuration of the log browser is as shown in FIG.
상기 테이블 구조 및 도 1에 도시된 바와 같이 로그 브라우저의 검색종류는 날짜, 관리형태(Mgmt Type), 액션(Action), 사용자 등이 있으며, 상기 검색종류의 데이터들은 데이터 베이스에 문자 형태로 저장된다. 즉, 날짜 데이터는 15바이트의 배열로 저장된다. 예컨대, "1999-12-25 22:10:23"의 배열로 저장된다. 관리 형태 데이터는 "AM","SM" 등의 문자 형태로 저장이 되고, 액션데이터도 "TRANSMIT", "ADD" 등의 문자형태로 저장된다.As shown in FIG. 1, the search type of the log browser includes a date, a management type (Mgmt Type), an action, a user, and the like. The data of the search type is stored in a text form in a database. . That is, date data is stored in an array of 15 bytes. For example, "1999-12-25 22:10:23". The management type data is stored in the form of characters such as "AM" and "SM", and the action data is also stored in the form of characters such as "TRANSMIT" and "ADD".
상기한 바와 같이 종래 기술은 데이터베이스에 저장된 검색종류 정보가 문자형태로 저장 및 패치(fetch)되기 때문에 시스템 자원을 많이 소모시키고 액세스를위한 시간도 많이 필요로 하였다.As described above, the prior art consumes a lot of system resources and requires a lot of time for access because the search type information stored in the database is stored and fetched in text form.
따라서 본 발명의 목적은 데이터 베이스에 저장된 로그 메시지에 대한 빠르고 효율적인 데이터 베이스 검색을 수행할 수 있는 방법을 제공하는데 있다.Accordingly, an object of the present invention is to provide a method for performing a fast and efficient database search for log messages stored in a database.
본 발명의 다른 목적은 데이터 베이스에 저장하는 데이터의 형태를 최적화해 데이터 베이스에 의한 자원의 과다 사용을 최소화하기 위한 방법을 제공하는데 있다.Another object of the present invention is to provide a method for minimizing the excessive use of resources by the database by optimizing the type of data stored in the database.
상기한 목적에 따라, 본 발명은, 데이터 베이스 관리 시스템에서 데이터 베이스 검색 최적화 방법으로서, 로그 브라우저의 검색 종류 데이터들중 날짜데이터를 "datetime year to second"타입으로, 관리모듈 및 액션형태 데이터를 정수타입으로, 액션 및 사용자 데이터를 문자타입이 되게 구성하고, 상기 구성된 로그 브라우저를 이용하여 데이터 베이스를 검색한다.In accordance with the above object, the present invention is a database search optimization method in a database management system, the date data of the search type data of the log browser to the "datetime year to second" type, the management module and the action type data is integer As a type, the action and user data are configured to be a character type, and the database is searched using the configured log browser.
도 1은 종래 기술에 따른 로그 브라우저 화면 구성도,1 is a log browser screen configuration according to the prior art,
도 2는 로그 브라우저와 데이터 베이스를 보여주고 있는 도면,2 shows a log browser and a database;
도 3은 본 발명의 실시 예에 따른 로그 브라우저 화면 구성도.3 is a log browser screen configuration according to an embodiment of the present invention.
이하 본 발명의 바람직한 실시 예들을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
기존의 로그 브라우저는 모든 메시지를 문자 형태로 데이터 베이스에 저장함으로써 데이터 베이스 처리에 많은 자원을 필요로 했다. 이러한 데이터 베이스 데이터를 검색하기 위해 패치(fetch)를 하는 경우에도 모두 문자 데이터를 검색하여보여주기 때문에 시간이 많이 걸릴뿐더러 시스템의 자원을 많이 필요로 했다. 따라서 이러한 문제를 해결해 주기 위해 본 발명의 실시 예에서는, 데이터 베이스에 저장하는 데이터의 형태를 최적화해 데이터 베이스에 의한 자원의 과다 사용을 최소화한다.Traditional log browsers required a lot of resources for database processing by storing all messages in text form in the database. Even when fetching to retrieve such database data, all of them searched and displayed the character data, which required a lot of time and required a lot of system resources. Therefore, in order to solve this problem, the embodiment of the present invention optimizes the type of data stored in the database to minimize the excessive use of resources by the database.
도 2에서는 로그 브라우저(10)와, 데이터 베이스(20)를 보여주고 있는 도면이며, 본 발명의 실시 예에서는 데이터 베이스(20)에 저장하는 데이터의 형태를 최적화하기 위해 로그 브라우저(10)의 검색 종류를 하기와 같이 변경한다.2 shows a log browser 10 and a database 20. In an embodiment of the present invention, the log browser 10 is searched to optimize the type of data stored in the database 20. In FIG. Change the type as follows.
먼저, 날짜는 "datetime year to second"타입으로 변경한다. 관리모듈(management module)은 정수(integer)타입 예컨대, "smallint" 타입으로 변경한다. 액션형태(acttype)도 정수(integer)타입 예컨대, "smallint" 타입으로 변경한다.First, change the date to the "datetime year to second" type. The management module changes to an integer type, for example, a "smallint" type. The actiontype is also changed to an integer type, for example the "smallint" type.
본 발명의 실시 예에 따른 데이터 베이스 검색을 위한 테이블 구조의 일 예는 하기와 같으며, 그에 따른 로그 브라우저(10)의 화면 구성은 도 3과 같다.An example of a table structure for searching a database according to an embodiment of the present invention is as follows, and the screen configuration of the log browser 10 is as shown in FIG.
먼저 상기의 테이블 구조를 참조하면, 본 발명의 실시 예에 따른 로그 브라우저(10)의 검색 종류 데이터들중 날짜데이터(logdate)는 "datetime year to second"타입으로, 관리모듈 데이터(mgttype) 및 액션형태 데이터(actype)는 정수타입으로, 액션 데이터(action) 및 사용자 데이터(loguser)는 문자타입 즉char(128), char(10)이 되게 구성되어 있다.Referring first to the above table structure, the date data (logdate) of the search type data of the log browser 10 according to an embodiment of the present invention is a "datetime year to second" type, and management module data (mgttype) and action. The type data (actype) is an integer type, and the action data (action) and user data (loguser) are configured to be character types, that is, char (128) and char (10).
로그 브라우저(10)의 검색 종류 데이터들중 날짜데이터(logdate)를 "datetime year to second"타입으로 변경함으로써 로그 브라우저(10)의 검색 및 DB공간 사용의 효율성이 증대된다. 그리고, 본 발명의 실시 예에 따라 관리모듈 데이터(mgttype) 및 액션형태 데이터(actype)가 정수타입으로 데이터 베이스(20)에 저장됨에 따라 데이터베이스(20)로부터의 데이터 패치(fetch)시에는 로그 브라우저(10)가 상기 관리모듈 데이터(mgttype) 및 액션형태 데이터(actype)를 해석하고 분류하여 표시하여준다.By changing the date data (logdate) of the search type data of the log browser 10 to the "datetime year to second" type, the efficiency of the search and the DB space usage of the log browser 10 is increased. In addition, as the management module data (mgttype) and action type data (actype) are stored in the database 20 as an integer type according to an embodiment of the present invention, a log browser may be used to fetch data from the database 20. (10) interprets, classifies and displays the management module data (mgttype) and action type data (actype).
상기와 같은 검색 종류 데이터가 포함된 본 발명의 실시 예에 따른 로그 브라우저(10)의 화면 구성은 도 3과 같으며, 도 3을 참조하면, "User ID"부분은 원하는 사용자를 선택하여 검색 가능하게 하고, "Module"부분은 관리 모듈별 검색이 가능하게 하며(예컨대, AM,SM, MM 등으로 표시), "Action"부분은 관리 동작별 검색을 가능하게 한다(예컨대, TRANSMIT, ADD 등으로 표시). 또한 날짜 즉, "year", "month", "day", "hour", "min", "sec"는 원하는 시간대의 검색이 가능하게 한다.The screen configuration of the log browser 10 according to an exemplary embodiment of the present invention including the search type data as described above is the same as that of FIG. 3. Referring to FIG. 3, the "User ID" portion can be searched by selecting a desired user. The "Module" part enables searching by management module (e.g., denoted by AM, SM, MM, etc.), and the "Action" part enables searching by management operation (e.g., by TRANSMIT, ADD, etc.). Display). In addition, dates, ie, "year", "month", "day", "hour", "min", and "sec", enable searching of a desired time zone.
상술한 바와 같이 본 발명은 하기와 같은 효과가 있다.As described above, the present invention has the following effects.
(1) 데이터 베이스 검색 시간 감소(1) reduce database search time
- 데이터 베이스 데이터의 패치(fetch)시 걸리는 시간을 현저히 줄일 수 있다. 기존의 문자 타입의 데이터를 검색하는 것보다 정수를 검색하는 시간이 훨씬적게 걸린다. 주로 많이 사용하는 날짜별 검색은 새로운 타입인 "datetime year to second"를 이용하여 효율적으로 검색할 수 있다.(여기서는 informix DB의 타입의 예를 들어 설명함)The time required to fetch database data can be significantly reduced. Searching for integers takes much less time than searching for data of conventional character types. The most commonly used date-based search can be done efficiently by using the new type "datetime year to second".
(2) 시스템 자원의 절약(2) saving system resources
- 문자 배열의 DB공간 차지율과 정수의 DB공간 차지율은 큰 차이를 보인다. 모듈별로는 기존에는 3바이트를 차지하지만 본 발명에서는 "smallint" 1바이트를 차지하고, 액션(action)에서도, 기존 9바이트에서 본 발명에서는 "smallint" 1바이트를 차지하게 되므로, 데이터 베이스에 저장하는 로그 데이터가 많을수록 검색시간은 상대적으로 단축된다.-DB space occupancy rate of character array and DB space occupancy rate of integer show big difference. Each module occupies 3 bytes, but in the present invention occupies 1 byte of "smallint", and in the action (action), the existing 9 bytes occupies 1 byte of "smallint" in the present invention, so that the log data stored in the database The more, the shorter the search time.
상기한 사항을 종합해 보면, 본 발명은 로그 브라우저의 검색시간을 현저해 감소시키고 시스템 자원도 많이 절약한다.In summary, the present invention significantly reduces the search time of the log browser and saves a lot of system resources.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990059920A KR20010063059A (en) | 1999-12-21 | 1999-12-21 | Method for optimizing database search operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990059920A KR20010063059A (en) | 1999-12-21 | 1999-12-21 | Method for optimizing database search operation |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20010063059A true KR20010063059A (en) | 2001-07-09 |
Family
ID=19627727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019990059920A KR20010063059A (en) | 1999-12-21 | 1999-12-21 | Method for optimizing database search operation |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20010063059A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004044774A1 (en) * | 2002-11-12 | 2004-05-27 | Jeong-Bum Pyun | Data searching method and information data scrapping method using internet |
KR100973833B1 (en) * | 2010-04-14 | 2010-08-03 | (주)대한중전기 | Double suction pump |
-
1999
- 1999-12-21 KR KR1019990059920A patent/KR20010063059A/en not_active Application Discontinuation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004044774A1 (en) * | 2002-11-12 | 2004-05-27 | Jeong-Bum Pyun | Data searching method and information data scrapping method using internet |
KR100973833B1 (en) * | 2010-04-14 | 2010-08-03 | (주)대한중전기 | Double suction pump |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8402368B2 (en) | Methods for dynamic document generation | |
EP1244028B1 (en) | Method, computer program product and computer system for a single database system to support multiple application systems | |
US6601071B1 (en) | Method and system for business to business data interchange using XML | |
US20040111254A1 (en) | User defined text NLS enablement | |
US20050262110A1 (en) | Vector reads for array updates | |
CN101364217B (en) | Data maintenance method, equipment and system thereof in data-base | |
Helal et al. | A three-tier architecture for ubiquitous data access | |
US20130173544A1 (en) | Materialized query table journaling in a computer database system | |
CN101980207B (en) | Method and system for implementing database access | |
CN102004766A (en) | Query method and system for configurable information based on information system | |
US20050044065A1 (en) | Method and apparatus for enabling national language support of a database engine | |
US7130871B2 (en) | Method and apparatus for representing deleted data in a synchronizable database | |
US7676487B2 (en) | Method and system for formatting and indexing data | |
CN111782703A (en) | Method and system for automatically managing and displaying incidence relation between irrigation area object data | |
JP2000267907A (en) | Active storage device, control method of its storage and system for integrally utilizing different kinds of data by using the method | |
KR20010063059A (en) | Method for optimizing database search operation | |
CN103064847A (en) | Indexing equipment, indexing method, search device, search method and search system | |
Kulkarni et al. | Concurrent maintenance of views using multiple versions | |
US20080215538A1 (en) | Data ordering for derived columns in a database system | |
CN115033827A (en) | Method for updating front-end field | |
EP1437662A1 (en) | Method and device for accessing a database | |
CN114138247A (en) | Interface management method and system suitable for multiple systems | |
CN111143357A (en) | High-speed data query platform based on shared memory | |
CN1851698A (en) | High frequency data access system and method under world-wide web interactive programming language platform environment | |
CN108959417B (en) | Method for dynamically generating column based on quick retrieval template |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |