KR102415155B1 - Apparatus and method for retrieving data - Google Patents

Apparatus and method for retrieving data Download PDF

Info

Publication number
KR102415155B1
KR102415155B1 KR1020180054187A KR20180054187A KR102415155B1 KR 102415155 B1 KR102415155 B1 KR 102415155B1 KR 1020180054187 A KR1020180054187 A KR 1020180054187A KR 20180054187 A KR20180054187 A KR 20180054187A KR 102415155 B1 KR102415155 B1 KR 102415155B1
Authority
KR
South Korea
Prior art keywords
data
database
data item
search
stored
Prior art date
Application number
KR1020180054187A
Other languages
Korean (ko)
Other versions
KR20190129474A (en
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 KR1020180054187A priority Critical patent/KR102415155B1/en
Publication of KR20190129474A publication Critical patent/KR20190129474A/en
Application granted granted Critical
Publication of KR102415155B1 publication Critical patent/KR102415155B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • 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

Abstract

데이터 검색 장치 및 방법이 개시된다. 일 실시예에 따른 데이터 검색 장치는, 데이터베이스에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 저장하는 변경 내역 캐시 모듈; 사용자로부터 데이터 검색 요청을 수신하고, 검색 엔진을 조회하여 상기 데이터 검색 요청에 따른 검색 결과를 수신하는 데이터 검색 모듈; 및 상기 변경 내역 캐시 모듈에 저장된 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하고, 상기 검색 결과 중 적어도 일부를 상기 조회된 데이터 항목으로 대체하여 상기 사용자에게 제공하는 필터링 모듈을 포함한다.A data retrieval apparatus and method are disclosed. A data retrieval apparatus according to an embodiment includes: a change history cache module configured to store identification information of a changed data item when a change event for a data item stored in a database occurs; a data retrieval module for receiving a data retrieval request from a user and for receiving a retrieval result according to the data retrieval request by inquiring a search engine; and a filtering module that searches the database for data items corresponding to the identification information stored in the change history cache module, replaces at least a portion of the search results with the searched data items, and provides them to the user.

Description

데이터 검색 장치 및 방법{APPARATUS AND METHOD FOR RETRIEVING DATA}Data retrieval device and method

본 발명의 실시예들은 데이터베이스에 저장된 데이터를 효과적으로 검색하기 위한 기술과 관련된다.Embodiments of the present invention relate to techniques for effectively retrieving data stored in a database.

대용량의 데이터를 저장 및 관리하기 위한 수단 중 하나로서 데이터베이스 관리 시스템(DataBase Management System; DBMS)이 있다. 일반적으로는 관계형 데이터베이스(Relational DataBase Management System; RDBMS)가 많이 사용되나 최근에는 다양한 비-관계형 데이터베이스 또한 활발히 이용되고 있다. 이하에서는 이러한 다양한 데이터베이스 관리 시스템을 간단히 데이터베이스로 약칭하기로 한다.As one of the means for storing and managing a large amount of data, there is a database management system (DBMS). In general, a relational database (Relational DataBase Management System; RDBMS) is widely used, but recently, various non-relational databases are also actively used. Hereinafter, these various database management systems will be simply abbreviated as a database.

대부분의 데이터베이스는 기본적인 데이터 처리 기능인 Create(생성), Read(읽기), Update(갱신), Delete(삭제)에 최적화되어 있으나, 데이터의 검색에는 상대적으로 취약하다. 이에 따라 데이터베이스와는 별개의 검색 엔진(Search Engine)을 도입하여 데이터베이스의 취약한 검색 기능을 보완하는 경우가 많다.Most databases are optimized for the basic data processing functions Create, Read, Update, and Delete, but are relatively weak in data retrieval. Accordingly, in many cases, a search engine separate from the database is introduced to supplement the weak search function of the database.

대한민국 공개특허공보 제10-2015-0075407호 (2015. 07. 03)Republic of Korea Patent Publication No. 10-2015-0075407 (2015. 07. 03)

개시되는 실시예들은, 데이터베이스 및 상기 데이터베이스와 동기화된 검색 엔진을 동시에 운용하는 환경에서 사용자의 편의성을 향상하고 불필요한 서버 부하를 감소시키기 위한 것이다.The disclosed embodiments are for improving user convenience and reducing unnecessary server load in an environment in which a database and a search engine synchronized with the database are simultaneously operated.

예시적인 실시예에 따르면, 데이터베이스 및 상기 데이터베이스와 동기화된 검색 엔진을 이용하여 데이터를 검색하기 위한 시스템으로서, 상기 데이터베이스에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득하고, 획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장하는 변경 내역 캐시 모듈; 사용자로부터 데이터 검색 요청을 수신하고, 상기 검색 엔진을 조회하여 상기 데이터 검색 요청에 따른 검색 결과를 수신하는 데이터 검색 모듈; 및 상기 검색 결과 및 상기 변경 내역 캐시 모듈에 저장된 데이터 항목을 병합(merge)하여 상기 사용자에게 제공하는 필터링 모듈을 포함하는, 데이터 검색 장치가 제공된다.According to an exemplary embodiment, there is provided a system for retrieving data using a database and a search engine synchronized with the database, wherein when a change event for a data item stored in the database occurs, identification information of the changed data item is obtained, a change history cache module for retrieving and storing data items corresponding to the obtained identification information in the database; a data retrieval module for receiving a data retrieval request from a user and for receiving a retrieval result according to the data retrieval request by inquiring the search engine; and a filtering module that merges the search results and the data items stored in the change history cache module and provides them to the user.

상기 변경 이벤트는, 하나 이상의 데이터 항목에 대한 생성, 변경, 및 삭제 중 하나 이상을 포함할 수 있다.The change event may include one or more of creation, change, and deletion of one or more data items.

상기 변경 내역 캐시 모듈은, 기 설정된 삭제 주기마다 기 저장된 데이터 항목을 삭제할 수 있다.The change history cache module may delete a pre-stored data item every preset deletion period.

상기 필터링 모듈은, 상기 변경 내역 캐시 모듈에 저장된 데이터 항목의 수정 시각이 상기 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 상기 검색 결과에 포함된 데이터 항목을 상기 변경 내역 캐시 모듈에 저장된 데이터 항목으로 대체할 수 있다.The filtering module is configured to, when the modification time of the data item stored in the change history cache module is after the modification time of the data item included in the search result, the data item included in the search result to the data stored in the change history cache module items can be replaced.

상기 필터링 모듈은, 획득된 상기 식별 정보에 대응되는 데이터 항목이 상기 데이터베이스에 존재하지 않는 경우, 해당 데이터 항목이 삭제된 것으로 판단할 수 있다.The filtering module may determine that the corresponding data item has been deleted when the data item corresponding to the obtained identification information does not exist in the database.

상기 필터링 모듈은, 상기 검색 엔진으로부터 삭제된 데이터 항목의 개수에 대응되는 추가 검색 결과를 수신하고, 수신된 상기 추가 검색 결과를 이용하여 상기 검색 결과를 재구성할 수 있다.The filtering module may receive an additional search result corresponding to the number of deleted data items from the search engine, and reconstruct the search result by using the received additional search result.

다른 예시적인 실시예에 따르면, 데이터베이스 및 상기 데이터베이스와 동기화된 검색 엔진을 이용하여 데이터를 검색하기 위한 방법으로서, 상기 데이터베이스에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득하는 단계; 획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장하는 단계; 사용자로부터 데이터 검색 요청을 수신하고, 상기 검색 엔진을 조회하여 상기 데이터 검색 요청에 따른 검색 결과를 수신하는 단계; 및 상기 검색 결과 및 상기 상기 데이터베이스에서 조회하여 저장된 데이터 항목을 병합(merge)하여 상기 사용자에게 제공하는 단계를 포함하는, 데이터 검색 방법이 제공된다.According to another exemplary embodiment, there is provided a method for searching data using a database and a search engine synchronized with the database, comprising: obtaining identification information of a changed data item when a change event for a data item stored in the database occurs step; retrieving and storing a data item corresponding to the obtained identification information in the database; receiving a data search request from a user, and receiving a search result according to the data search request by inquiring the search engine; and merging the search result and data items stored by searching in the database and providing them to the user.

상기 변경 이벤트는, 하나 이상의 데이터 항목에 대한 생성, 변경, 및 삭제 중 하나 이상을 포함할 수 있다.The change event may include one or more of creation, change, and deletion of one or more data items.

상기 식별 정보를 저장하는 단계는, 기 설정된 삭제 주기마다 기 저장된 데이터 항목을 삭제하는 단계를 더 포함할 수 있다.The storing of the identification information may further include deleting a pre-stored data item at each preset deletion cycle.

상기 제공하는 단계는, 상기 조회하여 저장된 데이터 항목의 수정 시각이 상기 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 상기 검색 결과에 포함된 데이터 항목을 상기 조회하여 저장된 데이터 항목으로 대체하도록 구성될 수 있다.The providing may include replacing a data item included in the search result with the inquired and stored data item when the modification time of the inquired and stored data item is after the modification time of the data item included in the search result. can be

상기 제공하는 단계는, 상기 저장하는 단계는, 획득된 상기 식별 정보에 대응되는 데이터 항목이 상기 데이터베이스에 존재하지 않는 경우, 해당 데이터 항목이 삭제된 것으로 판단하도록 구성될 수 있다.The providing, the storing, may be configured to determine that the corresponding data item is deleted when the data item corresponding to the obtained identification information does not exist in the database.

상기 제공하는 단계는, 상기 검색 엔진으로부터 삭제된 데이터 항목의 개수에 대응되는 추가 검색 결과를 수신하는 단계; 및 수신된 상기 추가 검색 결과를 이용하여 상기 검색 결과를 재구성하는 단계를 더 포함할 수 있다.The providing may include: receiving additional search results corresponding to the number of deleted data items from the search engine; and reconstructing the search result by using the received additional search result.

개시되는 실시예들에 따를 경우, 데이터베이스 및 상기 데이터베이스와 동기화된 검색 엔진을 동시에 운용하는 환경에서 데이터베이스와 검색 엔진간의 데이터 갱신의 시간차로 인한 사용자의 불편을 줄일 수 있다.According to the disclosed embodiments, in an environment in which a database and a search engine synchronized with the database are simultaneously operated, user inconvenience due to a time difference between data update between the database and the search engine can be reduced.

또한 개시되는 실시예들에 따를 경우, 사용자가 생성, 수정, 또는 삭제한 데이터가 곧바로 검색 결과에 반영되므로 사용자가 갱신된 데이터를 얻기 위해 반복적으로 검색 데이터를 새로고침(refresh) 하는 등의 행위를 방지할 수 있는 바, 불필요한 서버 부하를 줄일 수 있다.In addition, according to the disclosed embodiments, since the data created, modified, or deleted by the user is immediately reflected in the search result, the user is prevented from repeatedly refreshing the search data in order to obtain the updated data. As this can be prevented, unnecessary server load can be reduced.

도 1은 본 발명의 일 실시예에 따른 데이터 관리 시스템을 설명하기 위한 블록도
도 2는 본 발명의 일 실시예에 따른 데이터 관리 시스템에서 데이터를 생성, 갱신 및 삭제하는 과정을 설명하기 위한 예시도
도 3은 본 발명의 일 실시예에 따른 데이터 관리 시스템에서 데이터를 검색하는 과정을 설명하기 위한 예시도
도 4는 본 발명의 일 실시예에 따른 데이터 관리 시스템에서 데이터를 생성, 갱신 및 삭제하는 과정에서 데이터베이스와 검색 엔진간 데이터 불일치가 발생하는 예를 설명하기 위한 예시도
도 5는 도 4와 같이 데이터베이스와 검색 엔진간 데이터 불일치가 발생된 상태에서 단말에 데이터를 조회할 경우를 설명하기 위한 예시도
도 6은 본 발명의 일 실시예에 따른 데이터 검색 장치를 설명하기 위한 블록도
도 7은 본 발명의 일 실시예에 따른 데이터 검색 장치에서의 데이터 검색 과정을 예를 들어 설명하기 위한 예시도
도 8은 일 실시예에 따른 데이터 검색 방법을 설명하기 위한 흐름도
1 is a block diagram illustrating a data management system according to an embodiment of the present invention;
2 is an exemplary diagram for explaining a process of creating, updating, and deleting data in a data management system according to an embodiment of the present invention;
3 is an exemplary diagram for explaining a process of searching for data in a data management system according to an embodiment of the present invention;
4 is an exemplary diagram for explaining an example in which data discrepancy occurs between a database and a search engine in the process of creating, updating, and deleting data in the data management system according to an embodiment of the present invention;
FIG. 5 is an exemplary diagram for explaining a case in which data is inquired from the terminal in a state where data mismatch between the database and the search engine occurs as shown in FIG. 4
6 is a block diagram illustrating a data search apparatus according to an embodiment of the present invention;
7 is an exemplary diagram for explaining a data search process in a data search apparatus according to an embodiment of the present invention.
8 is a flowchart illustrating a data search method according to an embodiment;

이하, 도면을 참조하여 본 발명의 구체적인 실시형태를 설명하기로 한다. 이하의 상세한 설명은 본 명세서에서 기술된 방법, 장치 및/또는 시스템에 대한 포괄적인 이해를 돕기 위해 제공된다. 그러나 이는 예시에 불과하며 본 발명은 이에 제한되지 않는다.Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. The following detailed description is provided to provide a comprehensive understanding of the methods, devices, and/or systems described herein. However, this is merely an example, and the present invention is not limited thereto.

본 발명의 실시예들을 설명함에 있어서, 본 발명과 관련된 공지기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략하기로 한다. 그리고, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다. 상세한 설명에서 사용되는 용어는 단지 본 발명의 실시예들을 기술하기 위한 것이며, 결코 제한적이어서는 안 된다. 명확하게 달리 사용되지 않는 한, 단수 형태의 표현은 복수 형태의 의미를 포함한다. 본 설명에서, "포함" 또는 "구비"와 같은 표현은 어떤 특성들, 숫자들, 단계들, 동작들, 요소들, 이들의 일부 또는 조합을 가리키기 위한 것이며, 기술된 것 이외에 하나 또는 그 이상의 다른 특성, 숫자, 단계, 동작, 요소, 이들의 일부 또는 조합의 존재 또는 가능성을 배제하도록 해석되어서는 안 된다.In describing the embodiments of the present invention, if it is determined that the detailed description of the known technology related to the present invention may unnecessarily obscure the gist of the present invention, the detailed description thereof will be omitted. And, the terms to be described later are terms defined in consideration of functions in the present invention, which may vary according to intentions or customs of users and operators. Therefore, the definition should be made based on the content throughout this specification. The terminology used in the detailed description is for the purpose of describing embodiments of the present invention only, and should in no way be limiting. Unless explicitly used otherwise, expressions in the singular include the meaning of the plural. In this description, expressions such as “comprising” or “comprising” are intended to indicate certain features, numbers, steps, acts, elements, some or a combination thereof, one or more other than those described. It should not be construed to exclude the presence or possibility of other features, numbers, steps, acts, elements, or any part or combination thereof.

도 1은 본 발명의 일 실시예에 따른 데이터 관리 시스템(100)을 설명하기 위한 블록도이다. 도시된 바와 같이, 본 발명의 일 실시예에 따른 데이터 관리 시스템(100)은 단말(102), 서비스 서버(104), 데이터베이스(106) 및 검색 엔진(108)을 포함한다.1 is a block diagram illustrating a data management system 100 according to an embodiment of the present invention. As shown, the data management system 100 according to an embodiment of the present invention includes a terminal 102 , a service server 104 , a database 106 , and a search engine 108 .

단말(102)은 온라인 서비스를 사용하는 사용자(110)가 상기 온라인 서비스를 제공받는 데 이용하는 컴퓨팅 장치이다. 개시되는 실시예들에서 단말(102)은 데스크탑 컴퓨터, 랩탑 컴퓨터 등의 개인용 컴퓨팅 디바이스, 스마트폰, 태블릿, 웨어러블 디바이스 등을 포괄할 수 있다.The terminal 102 is a computing device used by the user 110 using the online service to receive the online service. In the disclosed embodiments, the terminal 102 may include a personal computing device such as a desktop computer and a laptop computer, a smart phone, a tablet, a wearable device, and the like.

서비스 서버(104)는 단말(102)로 온라인 서비스를 제공하기 위한 서버이다. 일 실시예에서, 서비스 서버(104)는 단말(102)의 요청에 따라 데이터베이스(106) 및 검색 엔진(108)에 데이터를 생성, 수정, 삭제하거나, 또는 기 저장된 데이터를 조회하기 위한 서비스를 제공할 수 있다.The service server 104 is a server for providing an online service to the terminal 102 . In one embodiment, the service server 104 provides a service for creating, modifying, or deleting data in the database 106 and the search engine 108 according to the request of the terminal 102, or for inquiring pre-stored data can do.

데이터베이스(106)는 서비스 서버(104)와 연계하여 데이터를 저장 및 관리한다. 개시되는 실시예들에서 데이터베이스(106)는 대용량의 데이터를 저장 및 관리하기 위한 다양한 종류의 데이터베이스 관리 시스템(DataBase Management System; DBMS)를 포괄하는 의미로 사용된다.The database 106 stores and manages data in association with the service server 104 . In the disclosed embodiments, the database 106 is used to encompass various types of database management systems (DBMSs) for storing and managing large amounts of data.

검색 엔진(108)은 데이터베이스(106)와 동일한 데이터를 저장 및 관리하며, 서비스 서버(104)의 검색 요청에 응답하여 검색 결과를 제공한다. 전술한 바와 같이, 대부분의 데이터베이스(106)는 기본적인 데이터 처리 기능인 Create(생성), Read(읽기), Update(갱신), Delete(삭제)에 최적화되어 있으나, 데이터의 검색에는 상대적으로 취약하다. 이에 따라 데이터베이스(106)와는 별개의 검색 엔진(108)을 도입하여 데이터베이스의 취약한 검색 기능을 보완하는 경우가 많다.The search engine 108 stores and manages the same data as the database 106 , and provides search results in response to a search request of the service server 104 . As described above, most of the databases 106 are optimized for the basic data processing functions Create, Read, Update, and Delete, but are relatively weak in data retrieval. Accordingly, in many cases, a search engine 108 separate from the database 106 is introduced to supplement the weak search function of the database.

검색 엔진(108)은 데이터베이스(106)보다 훨씬 효율적으로 데이터를 검색할 수 있다. 그 이유는 데이터베이스(106)가 데이터를 별도의 가공 없이 그대로 저장하는 반면, 검색 엔진(108)의 경우 데이터를 인덱싱(indexing)하여 저장하기 때문이다. 다만 인덱싱 과정은 경우에 따라 많은 컴퓨팅 자원을 소모하기 때문에 검색 엔진(108)은 데이터베이스(106)보다 데이터의 생성, 갱신 및 삭제 시간이 많이 소요된다.The search engine 108 may retrieve data much more efficiently than the database 106 . The reason is that the database 106 stores data as it is without additional processing, whereas the search engine 108 indexes and stores the data. However, since the indexing process consumes a lot of computing resources in some cases, the search engine 108 takes more time to create, update, and delete data than the database 106 .

한편, 단말(102), 서비스 서버(104), 데이터베이스(106) 및 검색 엔진(108)은 통신 네트워크(110)를 통하여 서로 데이터를 송수신할 수 있다. 몇몇 실시예들에서, 통신 네트워크(110)는 인터넷, 하나 이상의 로컬 영역 네트워크(local area networks), 광역 네트워크(wire area networks), 셀룰러 네트워크, 모바일 네트워크, 그 밖에 다른 종류의 네트워크들, 또는 이러한 네트워크들의 조합을 포함할 수 있다.Meanwhile, the terminal 102 , the service server 104 , the database 106 , and the search engine 108 may transmit and receive data to and from each other through the communication network 110 . In some embodiments, communication network 110 is the Internet, one or more local area networks, wire area networks, cellular networks, mobile networks, other types of networks, or such networks. may include combinations of these.

도 2는 본 발명의 일 실시예에 따른 데이터 관리 시스템(100)에서 데이터를 생성, 갱신 및 삭제하는 과정을 설명하기 위한 예시도이다.2 is an exemplary diagram for explaining a process of creating, updating, and deleting data in the data management system 100 according to an embodiment of the present invention.

먼저 단말(102)은 서비스 서버(104)로 특정 데이터 항목의 변경을 요청한다. 본 명세서에서 데이터 항목의 '변경'이란 해당 데이터 항목의 생성, 갱신 또는 삭제(create, update, delete) 중 어느 하나를 가리키는 의미로 사용된다.First, the terminal 102 requests the service server 104 to change a specific data item. In the present specification, 'change' of a data item is used to indicate any one of creation, update, or deletion of a corresponding data item.

상기 변경 요청을 수신한 서비스 서버(104)는 수신된 변경 요청을 데이터베이스(106) 및 검색 엔진(108)에 전달한다. 이때, 검색 엔진(108)의 경우 안정성 등을 고려하여 별도의 프로세싱 큐(202, Processing Queue)를 구비할 수 있다. 이 경우 해당 변경 요청은 프로세싱 큐(202)로 입력되며, 검색 엔진(108)은 프로세싱 큐(202)에 입력된 데이터 변경 요청을 순차적으로 처리하게 된다.The service server 104 that has received the change request transmits the received change request to the database 106 and the search engine 108 . In this case, in the case of the search engine 108, a separate processing queue 202 (Processing Queue) may be provided in consideration of stability and the like. In this case, the corresponding change request is input to the processing queue 202 , and the search engine 108 sequentially processes the data change request input to the processing queue 202 .

도 3은 본 발명의 일 실시예에 따른 데이터 관리 시스템(100)에서 데이터를 검색하는 과정을 설명하기 위한 예시도이다. 먼저 단말(102)은 서비스 서버(104)로 특정 데이터 항목에 대한 검색을 요청한다. 그러면 서비스 서버(104)는 수신된 검색 요청을 검색 엔진(108)으로 전달한다. 도 2에서 알 수 있는 바와 같이 데이터의 변경은 데이터베이스(106) 및 검색 엔진(108)에 모두 반영되므로, 데이터베이스(106)와 검색 엔진(108)에 저장된 데이터는 동기화된 상태를 유지한다. 따라서 서비스 서버(104)는 검색에 최적화되어 있는 검색 엔진(108)을 이용하여 데이터 검색을 수행하고 검색 결과를 단말(102)에 제공할 수 있다.3 is an exemplary diagram for explaining a process of searching for data in the data management system 100 according to an embodiment of the present invention. First, the terminal 102 requests the service server 104 to search for a specific data item. The service server 104 then forwards the received search request to the search engine 108 . As can be seen from FIG. 2 , data changes are reflected in both the database 106 and the search engine 108 , so that the data stored in the database 106 and the search engine 108 maintain a synchronized state. Accordingly, the service server 104 may perform a data search using the search engine 108 optimized for search and provide the search result to the terminal 102 .

이와 같이, 데이터의 변경은 데이터베이스(106) 및 검색 엔진(108)에 모두 반영되므로 데이터베이스(106)와 검색 엔진(108)에 저장된 데이터는 동기화된 상태를 유지한다. 그러나 앞서 설명한 바와 같이 검색 엔진(108)은 데이터의 변경시 인덱싱 과정을 거치게 되므로 데이터베이스(106)와 비교하여 데이터 변경에 상대적으로 많은 시간이 소요된다. 더구나 검색 엔진(108)의 앞단에 별도의 프로세싱 큐(202)를 구비할 경우 양자의 시간차는 더 벌어지게 된다. 이와 같은 시간차로 인해 데이터베이스(106)에는 이미 반영된 데이터 변경이 검색 엔진(108)에는 아직 반영되지 않은 경우가 발생할 할 수 있으며, 이 경우 검색 엔진(108)의 검색 결과가 데이터베이스(106)의 저장된 데이터와 달라질 수 있다. 이를 예를 들어 설명하면 도 4 및 도 5와 같다.In this way, data changes are reflected in both the database 106 and the search engine 108, so that the data stored in the database 106 and the search engine 108 maintain a synchronized state. However, as described above, since the search engine 108 undergoes an indexing process when data is changed, it takes a relatively long time to change data compared to the database 106 . Moreover, when a separate processing queue 202 is provided at the front end of the search engine 108, the time difference between the two becomes wider. Due to such a time difference, there may be cases in which data changes already reflected in the database 106 are not yet reflected in the search engine 108. In this case, the search results of the search engine 108 are stored in the database 106. may vary with This will be described by way of example as shown in FIGS. 4 and 5 .

도 4는 본 발명의 일 실시예에 따른 데이터 관리 시스템(100)에서 데이터를 생성, 갱신 및 삭제하는 과정에서 데이터베이스(106)와 검색 엔진(108)간에 데이터 불일치가 발생하는 예를 설명하기 위한 예시도이다.4 is an example for explaining an example in which data discrepancy occurs between the database 106 and the search engine 108 in the process of creating, updating, and deleting data in the data management system 100 according to an embodiment of the present invention. It is also

먼저 단말(102)은 서비스 서버(104)로 특정 데이터 항목의 변경을 요청한다. 도시된 예에서는 단말(102)이 데이터베이스에 저장된 데이터 항목 중 A를 A'로, B를 B'로 각각 변경하고 C를 삭제하기 위한 요청을 서비스 서버(104)로 전달한 예를 나타내었다.First, the terminal 102 requests the service server 104 to change a specific data item. In the illustrated example, an example in which the terminal 102 transmits a request to change A to A' and B to B' and delete C to the service server 104 among the data items stored in the database is shown.

상기 요청을 수신한 서비스 서버(104)는 수신된 변경 요청을 데이터베이스(106) 및 검색 엔진(108)에 전달한다. 데이터베이스(106)는 별도의 인덱싱 등의 과정 없이 곧바로 데이터 변경을 처리할 수 있으므로, 데이터베이스(106)에 저장된 데이터 항목 중 A는 A'로, B는 B'로 각각 변경되며 C를 삭제된다. 반면, 검색 엔진(108)으로 전달된 변경 요청은 아직 프로세싱 큐(202)에서 대기하고 있으므로 검색 엔진(108)에는 여전히 A, B, C가 저장되어 있다.The service server 104 that has received the request forwards the received change request to the database 106 and the search engine 108 . Since the database 106 can immediately process data changes without a separate indexing process, among the data items stored in the database 106, A is changed to A', B is changed to B', and C is deleted. On the other hand, since the change request transmitted to the search engine 108 is still waiting in the processing queue 202 , A, B, and C are still stored in the search engine 108 .

도 5는 도 4와 같이 데이터베이스(106)와 검색 엔진(108)간에 데이터 불일치가 발생된 상태에서 단말(102)에 데이터를 조회(검색)할 경우를 설명하기 위한 예시도이다. 전술한 바와 같이 검색 엔진(108)에는 여전히 데이터 변경이 반영되지 않은 상태이다. 따라서 단말(102)이 이미 데이터 변경 요청을 전달한 이후 임에도 불구하고, 단말(102)의 데이터 조회 요청에 따라 검색 엔진(108)은 변경되기 전의 결과값인 A, B, C를 반환한다.FIG. 5 is an exemplary diagram for explaining a case of inquiring (searching) data to the terminal 102 in a state where data mismatch occurs between the database 106 and the search engine 108 as shown in FIG. 4 . As described above, the data change is still not reflected in the search engine 108 . Therefore, even after the terminal 102 has already transmitted the data change request, the search engine 108 returns the result values A, B, and C before the change according to the data inquiry request of the terminal 102 .

이 경우, 단말(102)의 사용자는 자신의 데이터 변경 요청이 제대로 수행되지 않았거나 또는 서비스 자체의 성능이 느리다고 판단하여 서비스의 품질 저하를 의심하는 등 서비스 이용에 불편함을 느끼게 된다. 또한, 사용자가 재차 데이터 변경을 수행하려 하거나, 또는 변경 데이터를 불러오기 위하여 화면을 지속적으로 새로고침(refresh)하거나 할 경우 불필요한 서버 요청이 발생하여 전체 시스템에 부하를 초래할 수 있다.In this case, the user of the terminal 102 feels inconvenient in using the service, such as judging that his/her data change request has not been properly performed or that the performance of the service itself is slow, and thus suspects the quality of the service. In addition, when the user attempts to change data again or continuously refreshes the screen to retrieve the changed data, unnecessary server requests may occur, which may cause a load on the entire system.

도 6은 본 발명의 일 실시예에 따른 데이터 검색 장치(600)를 설명하기 위한 블록도이다. 본 발명의 일 실시예에 따른 데이터 검색 장치(600)는 데이터베이스(106) 및 이와 동기화된 검색 엔진(108)을 동시에 운용하는 환경에서 데이터베이스(106)와 검색 엔진(108) 간의 데이터 변경 시차로 인한 사용자의 불편함을 해소하고 불필요한 서버 부하를 감소시키기 위한 것이다. 6 is a block diagram illustrating a data search apparatus 600 according to an embodiment of the present invention. The data search apparatus 600 according to an embodiment of the present invention operates due to the data change time difference between the database 106 and the search engine 108 in an environment in which the database 106 and the search engine 108 synchronized with the database 106 are simultaneously operated. This is to solve the user's inconvenience and reduce unnecessary server load.

일 실시예에서, 데이터 검색 장치(600)는 단말(102)의 내부에 구비될 수 있다. 이 경우 데이터 검색 장치(600)는 단말(102) 내의 애플리케이션으로부터 데이터 검색 요청을 수신하고, 상기 검색 요청에 대응되는 검색 결과를 상기 애플리케이션으로 제공할 수 있다. 상기 애플리케이션은 예를 들어 단말(102) 내에 구비된 웹 브라우저이거나, 또는 서비스 서버(104)와 연계하여 단말(102)의 사용자에게 서비스를 제공하기 위한 전용 애플리케이션일 수 있다. 다른 실시예에서, 데이터 검색 장치(600)는 서비스 서버(104)의 내부에 구비될 수 있다. 이 경우 데이터 검색 장치(600)는 단말(102)로부터 통신 네트워크(110)를 통해 데이터 검색 요청을 수신하고, 상기 검색 요청에 대응되는 검색 결과를 단말(102)로 제공할 수 있다.In an embodiment, the data retrieval apparatus 600 may be provided inside the terminal 102 . In this case, the data search apparatus 600 may receive a data search request from an application in the terminal 102 and provide a search result corresponding to the search request to the application. The application may be, for example, a web browser provided in the terminal 102 or a dedicated application for providing a service to the user of the terminal 102 in connection with the service server 104 . In another embodiment, the data retrieval device 600 may be provided inside the service server 104 . In this case, the data search apparatus 600 may receive a data search request from the terminal 102 through the communication network 110 , and provide a search result corresponding to the search request to the terminal 102 .

도 6에 도시된 바와 같이, 본 발명의 일 실시예에 따른 데이터 검색 장치(600)는 변경 내역 캐시 모듈(602), 데이터 검색 모듈(604) 및 필터링 모듈(606)을 포함한다.As shown in FIG. 6 , the data retrieval apparatus 600 according to an embodiment of the present invention includes a change history cache module 602 , a data retrieval module 604 , and a filtering module 606 .

변경 내역 캐시 모듈(602)은 데이터베이스(106)에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득하고, 획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장한다. 일 실시예에서, 상기 변경 이벤트는 하나 이상의 데이터 항목에 대한 생성, 변경, 및 삭제 중 하나 이상을 포함할 수 있다.When a change event occurs for a data item stored in the database 106, the change history cache module 602 obtains identification information of the changed data item, and retrieves and stores the data item corresponding to the obtained identification information from the database. do. In one embodiment, the change event may include one or more of creation, change, and deletion of one or more data items.

예를 들어, 단말(102)의 사용자가 단말(102) 내의 애플리케이션을 통하여 데이터베이스(106)에 새로운 데이터 항목을 생성하거나, 기 저장된 데이터 항목을 변경(갱신) 또는 삭제할 경우 변경 내역 캐시 모듈(602)은 상기 생성, 변경 또는 삭제되는 데이터 항목을 식별하기 위한 식별 정보를 획득할 수 있다. 이때 변경 내역 캐시 모듈(602)은 상기 데이터 항목의 생성, 변경 또는 삭제 요청으로부터 상기 식별 정보를 획득할 수 있다. 이후, 변경 내역 캐시 모듈(602)은 획득된 식별 정보를 이용하여 데이터베이스(106)를 조회하고 변경된 데이터 항목을 저장할 수 있다.For example, when a user of the terminal 102 creates a new data item in the database 106 through an application in the terminal 102 or changes (updates) or deletes a previously stored data item, the change history cache module 602 may obtain identification information for identifying the data item to be created, changed, or deleted. In this case, the change history cache module 602 may obtain the identification information from the request to create, change, or delete the data item. Thereafter, the change history cache module 602 may inquire the database 106 using the obtained identification information and store the changed data item.

일 실시예에서, 변경 내역 캐시 모듈(602)은 상기 식별 정보에 대응되는 데이터 항목이 데이터베이스(106)에 존재하지 않는 경우, 해당 데이터 항목이 사용자에 의하여 삭제된 것으로 판단하고 해당 데이터 항목 대신 해당 데이터 항목의 삭제 사실을 기록해 둘 수 있다.In one embodiment, when the data item corresponding to the identification information does not exist in the database 106 , the change history cache module 602 determines that the data item has been deleted by the user and replaces the data item with the corresponding data item. You can keep a record of the deletion of the item.

일 실시예에서, 변경 내역 캐시 모듈(602)은 기 설정된 삭제 주기마다 기 저장된 데이터 항목을 삭제할 수 있다. 상기 삭제 주기는 검색 엔진(108)의 데이터 변경 반영에 소요되는 시간을 고려하여 결정될 수 있다. 앞서 언급한 바와 같이 검색 엔진(108)은 데이터베이스(106)와 비교하여 데이터 변경 시간이 더 오래 소요된다. 따라서 변경 내역 캐시 모듈(602)은 데이터베이스(106)에서 변경된 데이터 항목을 저장하여 두었다가, 검색 엔진(108)이 해당 데이터 변경을 완료하는데 충분한 시간이 경과된 경우 기 저장된 정보를 삭제하도록 구성될 수 있다.In an embodiment, the change history cache module 602 may delete a pre-stored data item every preset deletion period. The deletion period may be determined in consideration of the time required for the search engine 108 to reflect the data change. As mentioned earlier, the search engine 108 takes longer to change data compared to the database 106 . Accordingly, the change history cache module 602 may be configured to store the changed data item in the database 106 and delete the pre-stored information when sufficient time has elapsed for the search engine 108 to complete the data change. .

데이터 검색 모듈(604)은 단말(102)의 사용자로부터 데이터 검색 요청을 수신하고, 검색 엔진(108)을 조회하여 데이터 검색 요청에 따른 검색 결과를 수신한다.The data retrieval module 604 receives a data retrieval request from the user of the terminal 102 , and queries the search engine 108 to receive a search result according to the data retrieval request.

필터링 모듈(606)은 변경 내역 캐시 모듈(602)에 저장된 데이터 항목을 조회하고, 데이터 검색 모듈(604)의 검색 결과와 변경 내역 캐시 모듈(602)에 저장된 데이터 항목을 병합(merge)하여 사용자에게 제공한다.The filtering module 606 inquires the data item stored in the change history cache module 602, and merges the search result of the data retrieval module 604 and the data item stored in the change history cache module 602 to provide the user with the search result. to provide.

일 실시예에서, 필터링 모듈(606)은 변경 내역 캐시 모듈(602)에 저장된 데이터 항목의 수정 시각이 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 상기 검색 결과에 포함된 데이터 항목을 조회된 데이터 항목으로 대체함으로써 상기 병합 과정을 수행할 수 있다.In one embodiment, the filtering module 606 queries the data item included in the search result when the modification time of the data item stored in the change history cache module 602 is after the modification time of the data item included in the search result. The above merging process can be performed by replacing the data item with the old data item.

또한 일 실시예에서 필터링 모듈(606)은 상기 식별 정보에 대응되는 데이터 항목이 삭제된 것으로 변경 내역 캐시 모듈(602)에 기록되어 있는 경우, 상기 검색 결과 중 해당 식별 정보에 대응되는 데이터 항목을 삭제할 수 있다. 이 경우 필터링 모듈(606)은 검색 엔진(108)을 이용하여 삭제된 데이터 항목의 개수만큼 추가 검색을 수행하고, 추가 검색 결과를 이용하여 기존 검색 결과를 보완할 수 있다.Also, in an embodiment, when the data item corresponding to the identification information is recorded in the change history cache module 602 as being deleted, the filtering module 606 deletes the data item corresponding to the identification information from the search result. can In this case, the filtering module 606 may perform additional searches as many as the number of deleted data items using the search engine 108 , and supplement the existing search results using the additional search results.

일 실시예에서, 변경 내역 캐시 모듈(602), 데이터 검색 모듈(604) 및 필터링 모듈(606)은 하나 이상의 프로세서 및 그 프로세서와 연결된 컴퓨터 판독 가능 기록 매체를 포함하는 컴퓨팅 장치 상에서 구현될 수 있다. 컴퓨터 판독 가능 기록 매체는 프로세서의 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 컴퓨팅 장치 내의 프로세서는 각 컴퓨팅 장치로 하여금 본 명세서에서 기술되는 예시적인 실시예에 따라 동작하도록 할 수 있다. 예를 들어, 프로세서는 컴퓨터 판독 가능 기록 매체에 저장된 명령어를 실행할 수 있고, 컴퓨터 판독 가능 기록 매체에 저장된 명령어는 프로세서에 의해 실행되는 경우 컴퓨팅 장치로 하여금 본 명세서에 기술되는 예시적인 실시예에 따른 동작들을 수행하도록 구성될 수 있다.In one embodiment, the change history cache module 602 , the data retrieval module 604 , and the filtering module 606 may be implemented on a computing device including one or more processors and a computer-readable recording medium coupled to the processors. The computer-readable recording medium may be internal or external to the processor, and may be connected to the processor by various well-known means. A processor within the computing device may cause each computing device to operate in accordance with the exemplary embodiments described herein. For example, the processor may execute instructions stored in a computer-readable recording medium, and the instructions stored in the computer-readable recording medium, when executed by the processor, cause the computing device to operate according to the exemplary embodiments described herein. can be configured to perform

도 7은 본 발명의 일 실시예에 따른 데이터 검색 장치(600)에서의 데이터 검색 과정을 예를 들어 설명하기 위한 예시도이다. 도시된 실시예에서는 단말(102) 내에 설치된 브라우저(702)에서 데이터 검색 장치(600)를 통해 데이터를 조회하는 예를 나타낸 것이다.7 is an exemplary diagram for explaining a data search process in the data search apparatus 600 according to an embodiment of the present invention. In the illustrated embodiment, an example of inquiring data through the data search device 600 in the browser 702 installed in the terminal 102 is shown.

먼저, 단말(102) 내의 브라우저에서, 데이터베이스(106)에 저장된 데이터 항목 중 A를 A'로, B를 B'로 각각 변경하고, C를 삭제하였다고 가정하자. 또한 상기 데이터 변경 내역이 데이터베이스(106)에는 이미 반영되었으나, 검색 엔진(108)에는 아직 반영되지 않은 상태라고 가정하자.First, it is assumed that, in the browser in the terminal 102 , A is changed to A' and B is changed to B' among the data items stored in the database 106 , and C is deleted. Also, it is assumed that the data change history has already been reflected in the database 106 but has not yet been reflected in the search engine 108 .

이 경우 데이터베이스(106)에 저장된 데이터 항목은 다음과 같다.In this case, the data items stored in the database 106 are as follows.

A', B', (삭제), D, E, FA', B', (delete), D, E, F

또한 검색 엔진(108)에 저장된 데이터 항목은 다음과 같다.Also, the data items stored in the search engine 108 are as follows.

A, B, C, D, E, FA, B, C, D, E, F

한편, 데이터 검색 장치(600)의 변경 내역 캐시 모듈(602)은 다음과 같이 최근 데이터 변경 내역을 데이터베이스(106)에서 조회하고 변경된 데이터 항목을 저장한다. Meanwhile, the change history cache module 602 of the data retrieval device 600 inquires the recent data change history in the database 106 and stores the changed data item as follows.

항목 A의 ID: A'Item A's ID: A'

항목 B의 ID: B'Item B's ID: B'

항목 C의 ID: (삭제)Item C's ID: (Deleted)

이와 같은 상황에서 브라우저(702)로부터 데이터베이스(106)에 저장된 데이터 항목 중 첫 다섯 개의 데이터 항목을 조회하기 위한 검색 요청이 데이터 검색 장치(600)로 수신되었다고 가정하자.In such a situation, it is assumed that a search request for inquiring the first five data items among the data items stored in the database 106 is received from the browser 702 to the data search device 600 .

상기 검색 요청을 수신한 데이터 검색 모듈(604)은 검색 엔진으로 상기 검색 요청을 전달한다. 전술한 바와 같이 검색 엔진(108)에는 아직 변경 내역이 반영되지 않은 상태이므로, 검색 엔진(108)은 다음과 같이 변경되기 전의 데이터 항목을 검색 결과로 반환한다.The data retrieval module 604 receiving the retrieval request transmits the retrieval request to a search engine. As described above, since the change history is not yet reflected in the search engine 108, the search engine 108 returns the data item before the change as a search result as follows.

A, B, C, D, EA, B, C, D, E

한편, 필터링 모듈(606)은 변경 내역 캐시 모듈(602)에 저장된 데이터 항목과 검색 엔진(108)의 검색 결과를 병합(merge)한다. 구체적으로, 필터링 모듈(606)은 변경 내역 캐시 모듈(602)에 저장된 데이터 항목을 반영하여, 검색 엔진(108)의 검색 결과 중 A를 A'로, B를 B'로 각각 대체한다. 아울러 항목 C에 해당하는 값은 변경 내역 캐시 모듈(602)에 삭제된 것으로 기록되어 있는 바, 필터링 모듈(606)은 검색 결과에서 이를 삭제한다. 상기 삭제 결과 검색 결과에는 데이터 항목이 하나 부족한 상태가 되며, 이를 보충하기 위해 필터링 모듈(606)은 검색 엔진(108)으로 추가 검색 요청을 전달하고, 이에 대한 응답으로 F를 추가 데이터 항목으로 수신하여 이를 검색 결과에 반영한다.Meanwhile, the filtering module 606 merges the data item stored in the change history cache module 602 and the search result of the search engine 108 . Specifically, the filtering module 606 reflects the data items stored in the change history cache module 602 and replaces A with A' and B with B' in the search results of the search engine 108, respectively. In addition, the value corresponding to item C is recorded as being deleted in the change history cache module 602, and the filtering module 606 deletes it from the search result. As a result of the deletion, the search result lacks one data item, and in order to supplement this, the filtering module 606 transmits an additional search request to the search engine 108, and receives F as an additional data item in response to this. This is reflected in the search results.

상기와 같은 과정을 거쳐 브라우저(702)로 전달되는 최종 검색 결과는 다음과 같다.The final search result delivered to the browser 702 through the above process is as follows.

A', B', D, E, FA', B', D, E, F

도 8은 일 실시예에 따른 데이터 검색 방법(800)을 설명하기 위한 흐름도이다. 도 8에 도시된 방법은 예를 들어, 전술한 데이터 검색 장치(600)에 의해 수행될 수 있다. 도시된 흐름도에서는 상기 방법을 복수 개의 단계로 나누어 기재하였으나, 적어도 일부의 단계들은 순서를 바꾸어 수행되거나, 다른 단계와 결합되어 함께 수행되거나, 생략되거나, 세부 단계들로 나뉘어 수행되거나, 또는 도시되지 않은 하나 이상의 단계가 부가되어 수행될 수 있다.8 is a flowchart illustrating a data search method 800 according to an embodiment. The method shown in FIG. 8 may be performed, for example, by the above-described data retrieval apparatus 600 . In the illustrated flowchart, the method is described by dividing the method into a plurality of steps, but at least some of the steps are performed in a different order, are performed in combination with other steps, are omitted, are performed in separate steps, or are not shown. One or more steps may be added and performed.

단계 802에서, 데이터 검색 장치(600)의 변경 내역 캐시 모듈(602)은 데이터베이스(106)에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득한다.In step 802 , the change history cache module 602 of the data retrieval device 600 obtains identification information of the changed data item when a change event for the data item stored in the database 106 occurs.

단계 804에서, 변경 내역 캐시 모듈(602)은 상기 802 단계에서 획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장한다. 이때, 변경 내역 캐시 모듈(602)은 획득된 상기 식별 정보에 대응되는 데이터 항목이 상기 데이터베이스에 존재하지 않는 경우, 해당 데이터 항목이 삭제된 것으로 판단할 수 있다. 또한, 전술한 바와 같이 변경 내역 캐시 모듈(602)에 저장된 데이터 항목은 기 설정된 삭제 주기마다 삭제될 수 있다.In step 804, the change history cache module 602 searches the database for a data item corresponding to the identification information obtained in step 802 and stores it. In this case, when the data item corresponding to the obtained identification information does not exist in the database, the change history cache module 602 may determine that the corresponding data item has been deleted. Also, as described above, the data item stored in the change history cache module 602 may be deleted at every preset deletion period.

단계 806에서, 데이터 검색 장치(600)의 데이터 검색 모듈(604)은 사용자로부터 데이터 검색 요청을 수신한다. 일 실시예에서, 상기 데이터 검색 요청은 단말(102)에 구비된 애플리케이션으로부터 수신될 수 있다.In step 806, the data retrieval module 604 of the data retrieval device 600 receives a data retrieval request from a user. In an embodiment, the data retrieval request may be received from an application provided in the terminal 102 .

단계 808에서, 데이터 검색 모듈(604)은 검색 엔진(108)을 조회하여 데이터 검색 요청에 따른 검색 결과를 수신한다.In step 808, the data retrieval module 604 inquires the retrieval engine 108 to receive a retrieval result according to the data retrieval request.

단계 810에서, 필터링 모듈(606)은 단계 808에서 검색 엔진(108)으로부터 수신한 검색 결과를 단계 804에서 변경 내역 캐시 모듈(602)에 저장된 데이터 항목과 병합하여 상기 사용자에게 제공한다. 일 실시예에서, 필터링 모듈(606)은 데이터베이스(106)에서 조회된 데이터 항목의 수정 시각이 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 검색 결과에 포함된 데이터 항목을 조회된 데이터 항목으로 대체함으로써 상기 병합을 수행할 수 있다.In step 810, the filtering module 606 merges the search result received from the search engine 108 in step 808 with the data item stored in the change history cache module 602 in step 804 and provides it to the user. In one embodiment, the filtering module 606 is configured to, when the modification time of the data item queried in the database 106 is after the modification time of the data item included in the search result, the data item included in the search result is returned to the queried data item. By replacing with , the merge can be performed.

또한, 필터링 모듈(606)은 변경 내역 캐시 모듈(602)에 삭제된 것으로 기록된 데이터 항목이 존재하는 경우, 해당 데이터 항목을 검색 결과에서 삭제하도록 구성될 수 있다. 이 경우 필터링 모듈(606)은 검색 엔진(108)으로부터 삭제된 데이터 항목의 개수에 대응되는 추가 검색 결과를 수신하고, 수신된 추가 검색 결과를 이용하여 검색 결과를 재구성할 수 있다.Further, the filtering module 606 may be configured to, when there is a data item recorded as being deleted in the change history cache module 602 , delete the corresponding data item from the search results. In this case, the filtering module 606 may receive additional search results corresponding to the number of deleted data items from the search engine 108 , and reconstruct the search results using the received additional search results.

한편, 본 발명의 실시예는 본 명세서에서 기술한 방법들을 컴퓨터상에서 수행하기 위한 프로그램, 및 상기 프로그램을 포함하는 컴퓨터 판독 가능 기록매체를 포함할 수 있다. 상기 컴퓨터 판독 가능 기록매체는 프로그램 명령, 로컬 데이터 파일, 로컬 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나, 또는 컴퓨터 소프트웨어 분야에서 통상적으로 사용 가능한 것일 수 있다. 컴퓨터 판독 가능 기록매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광 기록 매체, 및 롬, 램, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 상기 프로그램의 예는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다.Meanwhile, an embodiment of the present invention may include a program for performing the methods described in this specification on a computer, and a computer-readable recording medium including the program. The computer-readable recording medium may include program instructions, local data files, local data structures, etc. alone or in combination. The media may be specially designed and configured for the present invention, or may be commonly used in the field of computer software. Examples of computer-readable recording media include hard disks, magnetic media such as floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, and program instructions specially configured to store and execute program instructions such as ROMs, RAMs, flash memories, etc. Hardware devices are included. Examples of the program may include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like.

이상에서 본 발명의 대표적인 실시예들을 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다. 그러므로 본 발명의 권리범위는 설명된 실시예에 국한되어 정해져서는 안 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Although representative embodiments of the present invention have been described in detail above, those of ordinary skill in the art to which the present invention pertains will understand that various modifications are possible without departing from the scope of the present invention with respect to the above-described embodiments. . Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims described below as well as the claims and equivalents.

600: 데이터 검색 장치
602: 변경 내역 캐시 모듈
604: 데이터 검색 모듈
606: 필터링 모듈
600: data retrieval device
602: Change History Cache Module
604: data retrieval module
606: filtering module

Claims (12)

데이터베이스 및 상기 데이터베이스의 데이터와 동기화된 데이터를 저장하는 검색 엔진을 이용하여 데이터를 검색하기 위한 시스템으로서,
상기 데이터베이스에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득하고, 획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장하는 변경 내역 캐시 모듈;
사용자로부터 데이터 검색 요청을 수신하고, 상기 검색 엔진을 조회하여 상기 데이터 검색 요청에 따른 검색 결과를 수신하는 데이터 검색 모듈; 및
상기 검색 결과 및 상기 변경 내역 캐시 모듈에 저장된 데이터 항목을 병합(merge)하여 상기 사용자에게 제공하는 필터링 모듈을 포함하는, 데이터 검색 장치.
A system for retrieving data using a database and a search engine that stores data synchronized with the data in the database, the system comprising:
a change history cache module for obtaining identification information of the changed data item when a change event for the data item stored in the database occurs, and retrieving and storing the data item corresponding to the obtained identification information from the database;
a data retrieval module for receiving a data retrieval request from a user and for receiving a retrieval result according to the data retrieval request by inquiring the search engine; and
and a filtering module for merging the search results and the data items stored in the change history cache module and providing them to the user.
청구항 1에 있어서,
상기 변경 이벤트는, 하나 이상의 데이터 항목에 대한 생성, 변경, 및 삭제 중 하나 이상을 포함하는, 데이터 검색 장치.
The method according to claim 1,
The change event comprises one or more of creation, change, and deletion of one or more data items.
청구항 1에 있어서,
상기 변경 내역 캐시 모듈은, 기 설정된 삭제 주기마다 기 저장된 데이터 항목을 삭제하는, 데이터 검색 장치.
The method according to claim 1,
The change history cache module is configured to delete a pre-stored data item every preset deletion period.
청구항 1에 있어서,
상기 필터링 모듈은, 상기 변경 내역 캐시 모듈에 저장된 데이터 항목의 수정 시각이 상기 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 상기 검색 결과에 포함된 데이터 항목을 상기 변경 내역 캐시 모듈에 저장된 데이터 항목으로 대체하는, 데이터 검색 장치.
The method according to claim 1,
The filtering module is configured to convert the data item included in the search result to the data stored in the change history cache module when the modification time of the data item stored in the change history cache module is after the modification time of the data item included in the search result. A data retrieval device that replaces an item.
청구항 4에 있어서,
상기 필터링 모듈은, 획득된 상기 식별 정보에 대응되는 데이터 항목이 상기 데이터베이스에 존재하지 않는 경우, 해당 데이터 항목이 삭제된 것으로 판단하는, 데이터 검색 장치.
5. The method according to claim 4,
The filtering module is configured to determine that the corresponding data item is deleted when the data item corresponding to the obtained identification information does not exist in the database.
청구항 5에 있어서,
상기 필터링 모듈은, 상기 검색 엔진으로부터 삭제된 데이터 항목의 개수에 대응되는 추가 검색 결과를 수신하고,
수신된 상기 추가 검색 결과를 이용하여 상기 검색 결과를 재구성하는, 데이터 검색 장치.
6. The method of claim 5,
The filtering module receives additional search results corresponding to the number of data items deleted from the search engine,
and reconstructing the search result by using the received additional search result.
데이터베이스 및 상기 데이터베이스의 데이터와 동기화된 데이터를 저장하는 검색 엔진을 이용하여 데이터를 검색하기 위한 방법으로서,
상기 데이터베이스에 저장된 데이터 항목에 대한 변경 이벤트 발생 시, 변경된 데이터 항목의 식별 정보를 획득하는 단계;
획득된 상기 식별 정보에 대응되는 데이터 항목을 상기 데이터베이스에서 조회하여 저장하는 단계;
사용자로부터 데이터 검색 요청을 수신하고, 상기 검색 엔진을 조회하여 상기 데이터 검색 요청에 따른 검색 결과를 수신하는 단계; 및
상기 검색 결과 및 상기 상기 데이터베이스에서 조회하여 저장된 데이터 항목을 병합(merge)하여 상기 사용자에게 제공하는 단계를 포함하는, 데이터 검색 방법.
A method for retrieving data using a database and a search engine that stores data synchronized with data in the database, the method comprising:
obtaining identification information of the changed data item when a change event for the data item stored in the database occurs;
retrieving and storing a data item corresponding to the obtained identification information in the database;
receiving a data search request from a user, and receiving a search result according to the data search request by inquiring the search engine; and
and merging the search results and data items stored by searching in the database and providing them to the user.
청구항 7에 있어서,
상기 변경 이벤트는, 하나 이상의 데이터 항목에 대한 생성, 변경, 및 삭제 중 하나 이상을 포함하는, 데이터 검색 방법.
8. The method of claim 7,
wherein the change event comprises one or more of creation, change, and deletion of one or more data items.
청구항 7에 있어서,
상기 식별 정보를 저장하는 단계는,
기 설정된 삭제 주기마다 기 저장된 데이터 항목을 삭제하는 단계를 더 포함하는, 데이터 검색 방법.
8. The method of claim 7,
Storing the identification information includes:
The data retrieval method further comprising the step of deleting a pre-stored data item at every preset deletion cycle.
청구항 7에 있어서,
상기 제공하는 단계는,
상기 조회하여 저장된 데이터 항목의 수정 시각이 상기 검색 결과에 포함된 데이터 항목의 수정 시각 이후인 경우, 상기 검색 결과에 포함된 데이터 항목을 상기 조회하여 저장된 데이터 항목으로 대체하도록 구성되는, 데이터 검색 방법.
8. The method of claim 7,
The providing step is
and replace the data item included in the search result with the inquired stored data item when the modification time of the inquired and stored data item is after the modification time of the data item included in the search result.
청구항 10에 있어서,
상기 저장하는 단계는, 획득된 상기 식별 정보에 대응되는 데이터 항목이 상기 데이터베이스에 존재하지 않는 경우, 해당 데이터 항목이 삭제된 것으로 판단하도록 구성되는, 데이터 검색 방법.
11. The method of claim 10,
The storing is configured to determine that the data item is deleted when the data item corresponding to the obtained identification information does not exist in the database.
청구항 11에 있어서,
상기 제공하는 단계는,
상기 검색 엔진으로부터 삭제된 데이터 항목의 개수에 대응되는 추가 검색 결과를 수신하는 단계; 및
수신된 상기 추가 검색 결과를 이용하여 상기 검색 결과를 재구성하는 단계를 더 포함하는, 데이터 검색 방법.
12. The method of claim 11,
The providing step is
receiving additional search results corresponding to the number of deleted data items from the search engine; and
and reconstructing the search result by using the received additional search result.
KR1020180054187A 2018-05-11 2018-05-11 Apparatus and method for retrieving data KR102415155B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180054187A KR102415155B1 (en) 2018-05-11 2018-05-11 Apparatus and method for retrieving data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180054187A KR102415155B1 (en) 2018-05-11 2018-05-11 Apparatus and method for retrieving data

Publications (2)

Publication Number Publication Date
KR20190129474A KR20190129474A (en) 2019-11-20
KR102415155B1 true KR102415155B1 (en) 2022-06-29

Family

ID=68729295

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180054187A KR102415155B1 (en) 2018-05-11 2018-05-11 Apparatus and method for retrieving data

Country Status (1)

Country Link
KR (1) KR102415155B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11250015B2 (en) 2020-02-07 2022-02-15 Coupang Corp. Systems and methods for low-latency aggregated-data provision
CN112214505A (en) * 2020-10-21 2021-01-12 北京金堤征信服务有限公司 Data synchronization method and device, computer readable storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110088204A (en) * 2010-01-28 2011-08-03 (주)타임비 Method for advertisement using online newspaper, server capable of using the method, and system having the server
CA2882498C (en) 2012-09-27 2020-11-17 Amadeus S.A.S. Method and system of storing and retrieving data

Also Published As

Publication number Publication date
KR20190129474A (en) 2019-11-20

Similar Documents

Publication Publication Date Title
CN107247808B (en) Distributed NewSQL database system and picture data query method
US8051045B2 (en) Archive indexing engine
US8122008B2 (en) Joining tables in multiple heterogeneous distributed databases
JP4856627B2 (en) Partial query caching
US8738572B2 (en) System and method for storing data streams in a distributed environment
US8666969B2 (en) Query rewrite for pre-joined tables
US7584204B2 (en) Fuzzy lookup table maintenance
US10417265B2 (en) High performance parallel indexing for forensics and electronic discovery
US9251179B2 (en) Managing record location lookup caching in a relational database
US8185546B2 (en) Enhanced control to users to populate a cache in a database system
US20120310934A1 (en) Historic View on Column Tables Using a History Table
CN102867070A (en) Method for updating cache of key-value distributed memory system
US20110035369A1 (en) Query Optimization with Memory I/O Awareness
US9183267B2 (en) Linked databases
EP1860603B1 (en) Efficient calculation of sets of distinct results
CN106294695A (en) A kind of implementation method towards the biggest data search engine
CN111046041B (en) Data processing method and device, storage medium and processor
WO2011130706A2 (en) Methods and systems for performing cross store joins in a multi-tenant store
CN110637292B (en) System and method for querying a resource cache
US20180267974A1 (en) Staged approach to automatic data discovery and performance
CN110889023A (en) Distributed multifunctional search engine of elastic search
US8965879B2 (en) Unique join data caching method
KR102415155B1 (en) Apparatus and method for retrieving data
CN115269631A (en) Data query method, data query system, device and storage medium
US8200673B2 (en) System and method for on-demand indexing

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant