JP5211180B2 - Database management apparatus, database management program, database management method, database management system - Google Patents

Database management apparatus, database management program, database management method, database management system Download PDF

Info

Publication number
JP5211180B2
JP5211180B2 JP2011002929A JP2011002929A JP5211180B2 JP 5211180 B2 JP5211180 B2 JP 5211180B2 JP 2011002929 A JP2011002929 A JP 2011002929A JP 2011002929 A JP2011002929 A JP 2011002929A JP 5211180 B2 JP5211180 B2 JP 5211180B2
Authority
JP
Japan
Prior art keywords
information
database
posted
post
posting
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2011002929A
Other languages
Japanese (ja)
Other versions
JP2012146058A (en
Inventor
博史 牧野
健悟 山名
一尋 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yahoo Japan Corp
Original Assignee
Yahoo Japan Corp
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 Yahoo Japan Corp filed Critical Yahoo Japan Corp
Priority to JP2011002929A priority Critical patent/JP5211180B2/en
Publication of JP2012146058A publication Critical patent/JP2012146058A/en
Application granted granted Critical
Publication of JP5211180B2 publication Critical patent/JP5211180B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、データベース管理装置、データベース管理プログラム、データベース管理方法、データベース管理システムに関する。   The present invention relates to a database management apparatus, a database management program, a database management method, and a database management system.

近年、ミニブログやマイクロブログと呼ばれるブログサービスが提供されてきている。かかるブログサービスでは、文字数を制限した短い文章をユーザから投稿させ、これら投稿された文章を時系列順に表示させることで、ユーザ間での簡便なコミュニケーションの場を提供する。   In recent years, blog services called miniblogs and microblogs have been provided. In such a blog service, a user can post a short sentence with a limited number of characters, and the posted sentences are displayed in chronological order, thereby providing a place for easy communication between users.

この種のサービスでは、ユーザ数の増加に伴って、ユーザから投稿される情報が時間と共に増加して膨大となることから、その情報の管理には、データベースの増設が容易なキーバリュー型のデータベースを用いることが知られている(例えば、非特許文献1参照)。   With this type of service, as the number of users increases, the information posted by users increases over time and becomes enormous. For this information management, a key-value database that allows easy database expansion It is known to use (for example, refer nonpatent literature 1).

大谷晋平著、“Cassandraのはじめ方─手を動かしてNoSQLを体感しよう”、[online]、平成22年4月27日、[平成22年12月11日]、インターネット<URL:http://gihyo.jp/dev/serial/01/cassandra/0001?skip>Ohei Shinpei, “How to get started with Cassandra: Let's move hands to experience NoSQL”, [online], April 27, 2010, [December 11, 2010], Internet <URL: http: // gihyo.jp/dev/serial/01/cassandra/0001?skip>

しかしながら、上記キーバリュー型のデータベースは、情報(以下、「バリュー」と呼ぶことがある)を複数の検索キーに関連づけて記憶し、検索キーを指定してバリューを取り出す仕様のデータベースである。   However, the key-value database is a database with specifications that store information (hereinafter sometimes referred to as “value”) in association with a plurality of search keys, and extract values by specifying the search keys.

例えば、投稿された文章に対して設定された素材(例えば、画像)や投稿された文章に含まれる特定の語句をバリューとしてキーバリュー型のデータベースに管理させた場合、それを指定した検索を行うことができないという課題がある。   For example, if a key-value database is managed as a value for a material (for example, an image) set for the posted text or a specific word / phrase included in the posted text, a search is performed by specifying it. There is a problem that it cannot be done.

したがって、投稿された文章に対して設定された素材の情報や投稿された文章に含まれる特定の語句などをバリューとしてキーバリュー型のデータベースに管理させた場合、その素材を指定した検索を行うことができない。   Therefore, if the key-value database manages the information on the material set for the posted text and the specific words / phrases contained in the posted text as values, perform a search that specifies the material. I can't.

本発明は、上記のような従来技術の課題を解決するものであり、その目的は、キーバリュー型のデータベースにおいて記憶される情報のうち特定種類の情報や当該特定種類の情報に基づく情報を容易に検索可能とすることにある。   The present invention solves the above-described problems of the prior art, and an object of the present invention is to facilitate information on a specific type of information stored in a key-value database or information based on the specific type of information. It is to make it searchable.

上記の目的を踏まえ、本発明の一態様(1)は、キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させるデータベース管理装置であって、前記第1データベースは、複数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける毎に、前記投稿情報の要素をそれぞれ複数の検索キーに関連付けて蓄積するデータベースであり、前記第1データベースによって管理される前記投稿情報の要素のうち、前記特定種類の情報を収集する収集手段と、前記収集手段によって収集した前記特定種類の情報又は当該特定種類の情報に基づく情報を前記第2データベースに記憶させる記憶処理手段と、前記記憶処理手段によって前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手段とを備える。   Based on the above object, one aspect (1) of the present invention is a database management apparatus that acquires information managed by a key-value type first database and manages the information by a non-key-value type second database, The first database is a database that accumulates each element of the posted information in association with a plurality of search keys every time it accepts posted information including specific types of information as elements from external devices used by a plurality of users. A collecting means for collecting the specific type of information among the elements of the posted information managed by the first database, and the specific type of information collected by the collecting means or information based on the specific type of information. Storage processing means for storing in the second database, and the second database by the storage processing means The stored information in response to a request from the external device and transmitting means for transmitting to the external device.

上記態様(1)をコンピュータ・プログラムという見方から捉えた本発明の一態様(6)は、キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させる処理をコンピュータに実行させるデータベース管理プログラムであって、前記第1データベースは、複数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける毎に、前記投稿情報の要素をそれぞれ複数の検索キーに関連付けて蓄積するデータベースであり、前記第1データベースによって管理され前記投稿情報の要素のうち、前記特定種類の情報を収集し、前記収集した前記特定種類の情報又は当該特定種類の情報に基づく情報を前記第2データベースに記憶し、前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する処理を前記コンピュータに実行させる。   According to the aspect (6) of the present invention, which grasps the aspect (1) from the viewpoint of a computer program, the information managed by the key-value type first database is acquired and managed by the non-key-value type second database. A database management program for causing a computer to execute processing, wherein each time the first database receives posting information including a specific type of information from an external device used by each of a plurality of users, Are stored in association with a plurality of search keys, and the specific type of information is collected from the elements of the posted information managed by the first database, and the collected specific type of information or the specific Information based on the type of information is stored in the second database, and the second database is stored. The information stored in the scan in response to a request from the external device to execute a process of transmitting to the external device to the computer.

上記態様(1)を方法という見方から捉えた本発明の一態様コンピュータを制御し、キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させるデータベース管理方法であって、前記第1データベースは、複数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける毎に、前記投稿情報の要素をそれぞれ複数の検索キーに関連付けて蓄積するデータベースであり、前記第1データベースによって管理され前記投稿情報の要素のうち、前記特定種類の情報を収集する手順と、前記収集した前記特定種類の情報又は当該特定種類の情報に基づく情報を前記第2データベースに記憶する手順と、前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手順とを含む。   A database that controls the computer according to one aspect of the present invention that captures the above aspect (1) from the viewpoint of a method, acquires information managed by the first database of the key value type, and manages the information by the second database of the non key value type In the management method, the first database associates each element of the posted information with a plurality of search keys each time it receives posted information including a specific type of information from an external device used by each of a plurality of users. And a procedure for collecting the specific type of information managed by the first database and the information based on the collected specific type of information or the specific type of information. Stored in the second database and the information stored in the second database On demand from and a transmission step of transmitting to the external device.

上記態様(1)をシステムという見方から捉えた本発明の一態様(8)は、キーバリュー型の第1データベースと、非キーバリュー型の第2データベースを有するデータベース管理装置とを備えたデータベース管理システムにおいて、前記第1データベースは、複数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける毎に、前記投稿情報の要素をそれぞれ複数の検索キーに関連付けて蓄積するデータベースであり、前記データベース管理装置は、前記第1データベースに蓄積される前記投稿情報の要素のうち、前記特定種類の情報を収集する収集手段と、前記収集手段によって収集した前記特定種類の情報又は当該特定種類の情報に基づく情報を前記第2データベースに記憶させる記憶処理手段と、前記記憶処理手段によって前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手段とを備える。   An aspect (8) of the present invention that captures the above aspect (1) from the viewpoint of a system is a database management including a key value type first database and a database management apparatus having a non-key value type second database. In the system, the first database accumulates each element of the posted information in association with a plurality of search keys each time it accepts posted information including specific types of information as elements from external devices respectively used by a plurality of users. The database management device is a collection unit that collects the specific type of information among the elements of the posted information stored in the first database, and the specific type of information collected by the collection unit or Storage processing means for storing information based on the specific type of information in the second database; The information stored in the second database by serial storage processing means in response to a request from the external device and transmitting means for transmitting to the external device.

この発明によれば、キーバリュー型の第1データベースにおいて記憶される投稿情報の要素のうち特定種類の情報や当該特定種類の情報に基づく情報を第2データベースから容易に検索することができる。しかも、外部装置からの要求毎に第1データベースを検索する必要がないため、第1データベースのパフォーマンスの低下を防止することが可能となる。   According to the present invention, it is possible to easily search the second database for specific types of information and information based on the specific types of information among elements of post information stored in the key-value type first database. In addition, since it is not necessary to search the first database for each request from the external device, it is possible to prevent the performance of the first database from being degraded.

本発明の他の態様(2)は、上記のいずれかの態様において、前記収集手段は、前記第1データベースから前記特定種類の情報を収集する。   In another aspect (2) of the present invention, in any one of the above aspects, the collecting unit collects the specific type of information from the first database.

この発明によれば、例えば、必要に応じて都度第1データベースから情報を収集することができるため、特定種類の情報を収集するための特別な構成を設ける必要がない。   According to the present invention, for example, information can be collected from the first database whenever necessary, so that it is not necessary to provide a special configuration for collecting specific types of information.

本発明の他の態様(3)は、上記のいずれかの態様において、前記収集手段は、外部装置から前記第1データベースへ記憶させる前記特定種類の情報が送信された場合に、当該特定種類の情報を収集する。   According to another aspect (3) of the present invention, in any one of the above aspects, when the specific type of information to be stored in the first database is transmitted from an external device, the collecting unit Collect information.

この発明によれば、第1データベースからの検索を必要としないため、第1データベースでの処理負荷を軽減することができ、第1データベースのパフォーマンスの低下を防止することが可能となる。   According to this invention, since the search from the first database is not required, it is possible to reduce the processing load on the first database and to prevent the performance of the first database from being lowered.

本発明の他の態様(4)は、上記のいずれかの態様において、前記記憶処理手段は、前記特定種類の情報を集計した情報を、前記特定種類の情報に基づく情報として前記第2データベースに記憶させる。   According to another aspect (4) of the present invention, in any one of the above aspects, the storage processing unit stores information obtained by tabulating the specific type of information in the second database as information based on the specific type of information. Remember.

この発明によれば、特定種類の情報を集計した情報(集計情報)を第2データベースに記憶するため、集計情報の検索を迅速に行うことができる。   According to this invention, since the information (total information) obtained by totaling specific types of information is stored in the second database, the total information can be searched quickly.

本発明の他の態様(5)は、上記のいずれかの態様において、前記投稿情報の要素は、複数の前記第2データベースによって分散管理され、前記複数の第2データベースは、前記投稿情報の各要素について、同一の情報を分散して複数記憶しており、前記収集手段は、前記同一の情報のうち最新の情報の中から、前記特定種類の情報を収集する。   According to another aspect (5) of the present invention, in any one of the above aspects, the post information element is distributed and managed by a plurality of the second databases, and the plurality of second databases includes each of the post information. A plurality of the same information is distributed and stored for the elements, and the collecting means collects the specific type of information from the latest information among the same information.

この発明によれば、保守性を高めるために同一情報を記憶した場合でも、最新の情報から特定種類の情報を収集することができ、できるだけ新しい情報を検索したいという要請に対応することができる。   According to the present invention, even when the same information is stored in order to improve maintainability, specific types of information can be collected from the latest information, and a request for searching for as new information as possible can be met.

本発明によれば、キーバリュー型のデータベースにおいて記憶される情報のうち、特定種類の情報や当該特定種類の情報に基づく情報を容易に検索することができる。   According to the present invention, it is possible to easily search for information of a specific type or information based on the specific type of information stored in a key-value database.

図1は、本発明の一実施形態に係るデータベース管理手法の概要図である。FIG. 1 is a schematic diagram of a database management method according to an embodiment of the present invention. 図2は、本発明の一実施形態に係るデータベース管理システムの構成図である。FIG. 2 is a configuration diagram of a database management system according to an embodiment of the present invention. 図3は、端末装置に表示されるウェブページの例を示す図である。FIG. 3 is a diagram illustrating an example of a web page displayed on the terminal device. 図4は、投稿情報蓄積サーバのブロック図である。FIG. 4 is a block diagram of the posted information storage server. 図5は、投稿情報データベースのデータ構成の一例を示す図である。FIG. 5 is a diagram illustrating an example of the data configuration of the posting information database. 図6は、投稿情報インデックスサーバのブロック図である。FIG. 6 is a block diagram of the posting information index server. 図7は、投稿情報インデックスデータベースのデータ構成の一例を示す図である。FIG. 7 is a diagram illustrating an example of a data configuration of the posting information index database. 図8は、投稿情報蓄積サーバの処理の一例(その1)を示すフローチャートである。FIG. 8 is a flowchart illustrating an example (part 1) of processing performed by the posting information storage server. 図9は、投稿情報インデックスサーバの処理の一例(その1)を示すフローチャートである。FIG. 9 is a flowchart illustrating an example (part 1) of processing performed by the posting information index server. 図10は、投稿情報インデックスサーバの処理の一例(その2)を示すフローチャートである。FIG. 10 is a flowchart illustrating an example (part 2) of the process performed by the posting information index server. 図11は、他の実施形態に係る投稿情報蓄積サーバのブロック図である。FIG. 11 is a block diagram of a posted information storage server according to another embodiment.

以下、本発明を実施するための形態(以下、「実施形態」と呼ぶ)について、図面を参照しつつ詳細に説明する。   Hereinafter, modes for carrying out the present invention (hereinafter referred to as “embodiments”) will be described in detail with reference to the drawings.

[1.データベース管理手法の概要]
まず、本発明に係る一実施形態のデータベース管理手法の概要について図1を用いて説明する。図1は、本発明の一実施形態に係るデータベース管理手法の概要説明図である。以下においては、投稿文字数が制限されるマイクロブログやミニブログと呼ばれるサービスを提供するブログサービスシステムを一例に挙げて説明するが、本実施形態に係るデータベース管理手法は様々なシステムや装置に適用することが可能である。
[1. Overview of database management method]
First, an outline of a database management method according to an embodiment of the present invention will be described with reference to FIG. FIG. 1 is a schematic explanatory diagram of a database management method according to an embodiment of the present invention. In the following, a blog service system that provides services called microblogs and miniblogs with a limited number of posted characters will be described as an example, but the database management method according to the present embodiment is applied to various systems and devices. It is possible.

本実施形態のブログサービスシステムは、図1の(A)に示すように、複数の投稿情報蓄積サーバ201〜20nと、投稿情報インデックスサーバ30とを備えており、複数の端末装置401〜40nから投稿される情報の蓄積や閲覧などを可能としている。なお、以下においては、投稿情報蓄積サーバ201〜20nのいずれか又は全部をいう場合には、投稿情報蓄積サーバ20とし、また、端末装置401〜40nのいずれか又は全部をいう場合には、端末装置40とする。 As shown in FIG. 1A, the blog service system of the present embodiment includes a plurality of post information storage servers 20 1 to 20 n and a post information index server 30, and includes a plurality of terminal devices 40 1. Storage and browsing of information posted from 40 n is possible. In the following, when referring to any or all of the contribution information storage server 20 1 to 20 n are set to post the information storage server 20, also when referring to any or all of the terminal apparatus 40 1 to 40 n The terminal device 40 is used.

投稿情報蓄積サーバ20は、受付手段23bと、記憶処理手段23cと、投稿情報データベース22とを備えている。受付手段23bは、各端末装置401〜40nから投稿される情報を受け付ける。記憶処理手段23cは、受付手段23bによって受け付けた情報を投稿情報として投稿情報データベース22(第1データベースの一例に相当)へ蓄積する。 The posted information storage server 20 includes a receiving unit 23b, a storage processing unit 23c, and a posted information database 22. The accepting unit 23b accepts information posted from each of the terminal devices 40 1 to 40 n . The storage processing unit 23c accumulates the information received by the receiving unit 23b in the posted information database 22 (corresponding to an example of the first database) as posted information.

投稿情報データベース22は、キーバリュー型データベースであり、複数の検索キーに関連づけて投稿情報の各要素が蓄積される。キーバリュー型のデータベースは、データベースの増設や情報の分散配置が容易であることからブログサービスシステムなどのように蓄積する情報が増加するシステムに有効なデータベースである。図1の(A)に示す例でも、投稿情報データベース22を備えた投稿情報蓄積サーバ20を複数配置している。   The posted information database 22 is a key-value database, and each element of posted information is stored in association with a plurality of search keys. A key-value type database is an effective database for a system in which accumulated information increases, such as a blog service system, because it is easy to add a database and to distribute and distribute information. In the example shown in FIG. 1A as well, a plurality of posted information storage servers 20 each having a posted information database 22 are arranged.

ここで、投稿情報データベース22に蓄積される投稿情報の一例を具体的に説明する。図1の(B)は、投稿情報データベース22に蓄積される情報のデータ構造の一例を示す図である。ここでは、投稿情報には、投稿文と素材IDとが要素に含まれる。素材IDは、投稿文に対して設定された画像(以下、素材画像と呼ぶ)を識別するためのIDである。   Here, an example of the posting information stored in the posting information database 22 will be specifically described. FIG. 1B is a diagram illustrating an example of a data structure of information stored in the posting information database 22. Here, the posted information and the material ID are included in the posted information. The material ID is an ID for identifying an image (hereinafter referred to as a material image) set for the posted text.

図1の(B)に示すように、投稿情報は、キースペース「メイン」に属するカラムファミリーのうち、「投稿」というカラムファミリーに割り当てられ、「メイン」および「投稿」がそれぞれ検索キーとなる。また、各投稿情報には、検索キーとして投稿IDが割り当てられ、さらに、投稿情報の各要素にも、それぞれ検索キーが割り当てられている。   As shown in FIG. 1B, post information is assigned to the column family “post” among the column families belonging to the key space “main”, and “main” and “post” are search keys, respectively. . Each post information is assigned a post ID as a search key, and a search key is also assigned to each element of the post information.

具体的には、投稿情報の要素には、投稿文や素材IDなどがあり、それぞれに検索キーが割り当てられる。図1の(B)に示す例では、検索キー「投稿ID」が「100」として割り当てられた投稿情報の要素として、検索キー「投稿文」に「投稿文A」が割り当てられ、検索キー「素材ID」に「200」が割り当てられて蓄積されることを示している。   Specifically, the posted information elements include a posted text and a material ID, and a search key is assigned to each. In the example shown in FIG. 1B, “post text A” is assigned to the search key “post text” as an element of post information assigned with the search key “post ID” being “100”, and the search key “ “200” is assigned to “Material ID” and stored.

投稿情報データベース22から投稿情報の要素として、例えば、投稿IDが「100」の投稿文を検索する場合、下記(1)に示す検索式となり、投稿IDが「101」の素材IDを検索する場合、下記(2)に示す検索式となる。
検索式=[メイン][投稿][100][投稿文] ・・・(1)
検索式=[メイン][投稿][101][素材ID] ・・・(2)
As a post information element from the post information database 22, for example, when searching for a post sentence with a post ID “100”, the search formula shown in (1) below is used, and when searching for a material ID with a post ID “101” The search formula is as shown in (2) below.
Search expression = [main] [post] [100] [post text] (1)
Search expression = [main] [post] [101] [material ID] (2)

以上のように、投稿情報データベース22は、投稿情報の要素を複数の検索キーに関連づけて記憶し、検索キーを指定して投稿情報の要素を取り出す仕様のデータベースである。   As described above, the posting information database 22 is a database that stores the elements of the posting information in association with a plurality of search keys and specifies the search keys to extract the elements of the posting information.

例えば、図1の(B)に示す例では、投稿IDが「100」の素材IDは、[メイン]、[投稿]、[100]、[検索ID]という複数の検索キーに関連付けられて記憶される。そして、これらの検索キーを指定した上記(2)の検索式によって投稿IDが「100」の検索IDの「200」を読み出すことができる。   For example, in the example shown in FIG. 1B, the material ID with the post ID “100” is stored in association with a plurality of search keys [main], [post], [100], and [search ID]. Is done. Then, the search ID “200” with the post ID “100” can be read out by the search formula (2) that specifies these search keys.

しかし、投稿情報の要素を指定した検索を行うことができない。例えば、「素材ID」が「200」であると指定した検索を行うことができない。「200」が検索キーとなっていないからである。   However, it is not possible to perform a search specifying an element of post information. For example, it is not possible to perform a search specified that “material ID” is “200”. This is because “200” is not a search key.

したがって、例えば、素材画像別(素材ID別)の投稿件数を検索するためには、投稿件数分の検索を行うことになる。例えば、投稿IDが「100」〜「100000」の投稿情報が蓄積されている場合、投稿IDを1ずつインクリメントしながら、 [メイン][投稿][100][素材ID]から[メイン][投稿][100000][素材ID]までを検索式によって検索をすることになる。これにより、投稿情報データベース22に蓄積された各投稿情報に含まれる素材IDの情報が読み出される。そして、読み出した素材IDの情報に基づいて、素材画像別(素材ID別)の数を集計する。   Therefore, for example, in order to search for the number of posts by material image (by material ID), a search is performed for the number of posts. For example, if post information with post IDs of “100” to “100000” is accumulated, the post ID is incremented by 1 and [main] [post] [100] [material ID] to [main] [post] ] [100,000] [Material ID] are searched using a search formula. As a result, information on the material ID included in each piece of post information accumulated in the post information database 22 is read out. Then, based on the read material ID information, the number of material images (by material ID) is counted.

このように、投稿情報の要素である素材画像の情報(素材ID)を指定した検索を投稿情報データベース22に対して行う場合、投稿情報データベース22に負荷がかかってパフォーマンスが低下する上に、素材ID別の数を集計するための演算処理が別途必要となる。   As described above, when a search specifying the material image information (material ID) that is an element of the posted information is performed on the posted information database 22, the posted information database 22 is overloaded and the performance is degraded. A separate calculation process is required to count the numbers for each ID.

また、キーバリュー型データベースでは、上述のような投稿毎の検索に加え、一括して投稿情報を取得することができる。すなわち、検索キー=[メイン][投稿]とすればすべての投稿情報を取得することができる。しかし、各投稿情報から素材IDを抽出した後に、素材ID別の数を集計しなければならず、演算処理の追加などが別途必要となる。   In addition, in the key-value database, post information can be acquired collectively in addition to the above-described search for each post. That is, if the search key = [main] [post], all post information can be acquired. However, after extracting the material ID from each posting information, the number for each material ID must be tabulated, and additional calculation processing is required.

さらに、本実施形態のブログサービスシステムでは、複数の投稿情報蓄積サーバ201〜20nによって、複数の投稿情報を分散して管理している上に、同一の投稿情報(オリジナルとレプリカ)も分散して管理するものであり、投稿情報の要素が更新された場合に同一の情報のすべてを更新するまでに時間がかかってしまう。そのため、検索の際には、同一の情報のうちタイムスタンプが最新のものを選択する必要があり、そのための処理にも負荷や時間がかかってしまうことになる。 Moreover, blog service system of the present embodiment, the plurality of post information storage server 20 1 to 20 n, on which is managed in a distributed plurality of post information, the same post information (original and replica) also dispersed If post information elements are updated, it takes time to update all of the same information. Therefore, when searching, it is necessary to select the latest information with the latest time stamp from the same information, and a load and time are required for the processing.

このように、キーバリュー型のデータベースは、データベースの増設や情報の分散配置が容易であることから蓄積する情報が増加するブログサービスシステムなどでは有効であるものの、検索キーで検索される情報(バリュー)を指定した検索を容易に行うことはできない。   As described above, the key-value type database is effective in a blog service system where the accumulated information increases because the database can be easily expanded and the information is distributed and distributed. ) Cannot be easily performed.

そこで、本実施形態のブログサービスシステムでは、投稿情報データベース22において検索キーで検索される投稿情報の要素を指定した検索を極めて容易に行えるように、投稿情報インデックスサーバ30を設けている。   Therefore, in the blog service system of the present embodiment, the posting information index server 30 is provided so that a search specifying the element of the posting information searched with the search key in the posting information database 22 can be performed very easily.

かかる投稿情報インデックスサーバ30は、図1の(A)に示すように、収集手段33dと、記憶処理手段33eと、投稿情報インデックスデータベース32(第2データベースの一例に相当)と、受付手段33cとを有している。   As shown in FIG. 1A, the posted information index server 30 includes a collecting unit 33d, a storage processing unit 33e, a posted information index database 32 (corresponding to an example of a second database), a receiving unit 33c, have.

収集手段33dは、投稿情報データベース22から各投稿情報の素材IDを取得する。投稿情報データベース22からの検索は、各投稿情報の素材IDをそれぞれ検索キーによって読み出すことによって行われる。なお、カラムファミリー[投稿]全体を読み出してから各投稿情報の素材IDを抽出することもできる。   The collecting unit 33d acquires the material ID of each posted information from the posted information database 22. The search from the posted information database 22 is performed by reading the material ID of each posted information using the search key. Note that the material ID of each piece of posted information can be extracted after reading the entire column family [post].

記憶処理手段33eは、収集手段33dによって収集された情報に基づき、素材ID別の投稿件数を集計し、例えば、素材IDをインデックスとして、投稿件数を投稿情報インデックスデータベース32に蓄積する。   The storage processing unit 33e counts the number of postings for each material ID based on the information collected by the collecting unit 33d. For example, the storage processing unit 33e stores the number of postings in the posting information index database 32 using the material ID as an index.

ここで、投稿情報インデックスデータベース32に蓄積される情報の一例を具体的に説明する。図1の(C)は、投稿情報インデックスデータベース32に蓄積される情報のデータ構造の一例を示す図である。   Here, an example of information stored in the posted information index database 32 will be specifically described. FIG. 1C is a diagram illustrating an example of a data structure of information stored in the posted information index database 32.

図1の(C)に示すように、投稿情報インデックスデータベース32には、素材IDをインデックスとして素材ID別の投稿件数が蓄積される。例えば、素材ID「200」には、投稿件数「14」が関連付けられており、また、素材ID「201」には、投稿件数「20」が関連付けられている。   As shown in FIG. 1C, the posting information index database 32 stores the number of posts by material ID with the material ID as an index. For example, the number of posts “14” is associated with the material ID “200”, and the number of posts “20” is associated with the material ID “201”.

受付手段33cは、端末装置40からインデックスである素材IDを指定した検索要求があった場合、投稿情報インデックスデータベース32から指定された素材IDの投稿件数を読み出す。そして、このように読み出された投稿件数の情報は閲覧情報として検索要求を行った端末装置40へ送信される。   When there is a search request specifying the material ID that is an index from the terminal device 40, the receiving unit 33c reads the number of posts of the specified material ID from the posting information index database 32. Then, the information on the number of posts read in this way is transmitted as browsing information to the terminal device 40 that has made a search request.

このように、本実施形態に係るブログサービスシステムでは、投稿情報蓄積サーバ20に加えて、投稿情報インデックスサーバ30を設けており、投稿情報インデックスデータベース32では、素材IDをインデックスとして素材ID別の投稿件数が蓄積されている。そのため、端末装置40からの要求に応じて素材IDをインデックスとして投稿件数を容易に読み出すことができる。   As described above, in the blog service system according to the present embodiment, the posting information index server 30 is provided in addition to the posting information storage server 20, and the posting information index database 32 uses the material ID as an index and posts by material ID. The number of cases is accumulated. Therefore, according to a request from the terminal device 40, the number of posts can be easily read using the material ID as an index.

なお、上述では、素材画像を投稿文に対して設定可能としており、素材画像を投稿文と共に閲覧可能とすることで、閲覧者のであるユーザに投稿文の内容を迅速に把握させることができる。しかも、素材画像を指定した検索を行うことができるため、より魅力的なブログサービスを提供することができる。   In the above description, the material image can be set for the posted text, and by allowing the material image to be viewed together with the posted text, the user who is the viewer can quickly grasp the content of the posted text. In addition, since it is possible to perform a search specifying a material image, a more attractive blog service can be provided.

なお、上述では、投稿情報インデックスサーバ30が収集する投稿情報の要素として、素材IDを一例に挙げて説明したが、これに限られず、投稿情報データベース22において複数のキーに関連づけられる投稿情報の要素であればどのようなものであってもよい。例えば、投稿された文章に含まれる特定の語句をバリューとして、投稿情報データベース22で管理させる場合、特定の語句を投稿情報インデックスサーバ30が収集する投稿情報の要素とすることができる。   In the above description, the material ID is described as an example of the post information element collected by the post information index server 30. However, the post information is not limited to this, and the post information element associated with a plurality of keys in the post information database 22 is described. Anything may be used. For example, when a specific word / phrase included in a posted sentence is managed as a value in the post information database 22, the specific word / phrase can be used as an element of post information collected by the post information index server 30.

[2.データベース管理手法の具体例]
次に、図2〜図10を参照して、本実施形態のデータベース管理手法を適用したブログサービスシステムの具体的な一例を説明する。なお、上述のように、本実施形態に係るデータベース管理手法は様々なシステムや装置に適用することが可能である。
[2. Specific examples of database management methods]
Next, a specific example of a blog service system to which the database management method of this embodiment is applied will be described with reference to FIGS. As described above, the database management method according to this embodiment can be applied to various systems and apparatuses.

まず、本実施形態に係るデータベース管理手法を適用したブログサービスシステムの全体構成について説明する。図2は、本実施形態に係るブログサービスシステムの構成を示す図である。   First, an overall configuration of a blog service system to which the database management method according to the present embodiment is applied will be described. FIG. 2 is a diagram showing a configuration of the blog service system according to the present embodiment.

図2に示すように、ブログサービスシステムSは、アプリケーションサーバ10と、投稿情報蓄積サーバ20(201〜20n)と、投稿情報インデックスサーバ30とを備えており、これらのサーバはLAN(Local Area Network)などのネットワークにより接続されている。このブログサービスシステムSは、ルータ60を介してインターネットなどのネットワーク50に接続されている。 As shown in FIG. 2, the blog service system S includes an application server 10, a posting information storage server 20 (20 1 to 20 n ), and a posting information index server 30. These servers are LAN (Local). Connected by a network such as Area Network. The blog service system S is connected to a network 50 such as the Internet via a router 60.

このブログサービスシステムSは、各端末装置40(401〜40n)のユーザが投稿と閲覧とを行うことを可能としたシステムである。各端末装置40は、ネットワーク50を介してブログサービスシステムSと情報の送受信が可能であり、ブログサービスシステムSでは、各端末装置40のユーザからの投稿や閲覧などの要求を受け付ける。 The blog service system S is a system that allows users of the terminal devices 40 (40 1 to 40 n ) to post and browse. Each terminal device 40 can transmit and receive information to and from the blog service system S via the network 50, and the blog service system S accepts requests such as posting and browsing from the user of each terminal device 40.

例えば、各端末装置40のユーザからの投稿要求は、アプリケーションサーバ10によって受け付けられ、その投稿要求に応じた情報はアプリケーションサーバ10から投稿情報蓄積サーバ20へ通知され、投稿情報蓄積サーバ20の投稿情報データベース22に投稿情報として蓄積される。   For example, a posting request from a user of each terminal device 40 is accepted by the application server 10, information corresponding to the posting request is notified from the application server 10 to the posting information storage server 20, and posting information of the posting information storage server 20 Accumulated in the database 22 as post information.

また、各端末装置40のユーザからの閲覧要求は、アプリケーションサーバ10によって受け付けられ、その種類に応じて投稿情報蓄積サーバ20や投稿情報インデックスサーバ30へ通知される。投稿情報蓄積サーバ20や投稿情報インデックスサーバ30は、閲覧要求に対応する情報を内部のデータベースから読み出し、アプリケーションサーバ10経由で閲覧要求元の端末装置40へ通知する。   The browsing request from the user of each terminal device 40 is accepted by the application server 10 and notified to the posted information storage server 20 and the posted information index server 30 according to the type. The posting information storage server 20 and the posting information index server 30 read information corresponding to the browsing request from the internal database, and notify the terminal device 40 of the browsing request source via the application server 10.

各端末装置40は、通信手段41と、ブラウザ42と、操作手段43と、表示手段44とを有しており、操作手段43への操作によってブラウザ42を制御して、通信手段41を介してアプリケーションサーバ10との間で各種のデータの送受信を行う。これによって、各端末装置40のユーザは、投稿や閲覧を行うことができる。   Each terminal device 40 includes a communication unit 41, a browser 42, an operation unit 43, and a display unit 44, and controls the browser 42 by an operation on the operation unit 43, via the communication unit 41. Various types of data are transmitted to and received from the application server 10. Thereby, the user of each terminal device 40 can perform posting and browsing.

ここで、各端末装置40において投稿や閲覧の要求を行うためのウェブページの例を説明する。図3は、アプリケーションサーバ10から送信され、端末装置40において表示されるウェブページの例を示す図である。   Here, an example of a web page for making a posting or browsing request in each terminal device 40 will be described. FIG. 3 is a diagram illustrating an example of a web page transmitted from the application server 10 and displayed on the terminal device 40.

本実施形態に係るブログサービスシステムSでは、例えば、操作手段43への操作によってブラウザ42からアプリケーションサーバ10へのアクセスがあった場合、アプリケーションサーバ10はブログサービスのTOPページの情報を端末装置40へ送信する。なお、アプリケーションサーバ10へのアクセスには端末装置40のユーザに対応するユーザIDの情報も含まれており、ユーザIDに対応するTOPページがアプリケーションサーバ10から送信される。   In the blog service system S according to the present embodiment, for example, when the browser 42 accesses the application server 10 by an operation on the operation unit 43, the application server 10 sends information on the TOP page of the blog service to the terminal device 40. Send. Note that the access to the application server 10 includes user ID information corresponding to the user of the terminal device 40, and a TOP page corresponding to the user ID is transmitted from the application server 10.

ブラウザ42は、アプリケーションサーバ10から受信したTOPページの情報に基づいて、ブログサービスのTOPページ11を表示手段44に表示させる。図3の(A)は、表示手段44に表示されるTOPページ11の一例を示している。このTOPページ11では、「一言投稿」、「一言閲覧」、「使用素材一覧画像」を選択可能としている。   The browser 42 displays the TOP page 11 of the blog service on the display unit 44 based on the TOP page information received from the application server 10. FIG. 3A shows an example of the TOP page 11 displayed on the display means 44. On this TOP page 11, “one word posting”, “one word browsing”, and “used material list image” can be selected.

操作手段43への操作によってTOPページ11の「一言投稿」が選択された場合、ブラウザ42からその選択情報がアプリケーションサーバ10へ送信される。この選択情報の送信に対し、アプリケーションサーバ10から投稿用ページの情報が端末装置40へ送信され、図3の(B)に示すように、投稿を行うための投稿用ページ12がブラウザ42によって表示手段44に表示される。端末装置40のユーザは、操作手段43への操作によって投稿文入力ボックス12a内に投稿文を入力し、「投稿」ボタン12bを押下する。これにより、投稿文の情報がアプリケーションサーバ10へ送信される。   When “single word posting” on the TOP page 11 is selected by operating the operation means 43, the selection information is transmitted from the browser 42 to the application server 10. In response to the transmission of the selection information, information on the posting page is transmitted from the application server 10 to the terminal device 40, and the posting page 12 for posting is displayed by the browser 42 as shown in FIG. It is displayed on the means 44. The user of the terminal device 40 inputs a posted message in the posted message input box 12a by operating the operation unit 43, and presses the “post” button 12b. As a result, the posted text information is transmitted to the application server 10.

投稿文の送信に対して、アプリケーションサーバ10からは、図3の(C)に示すような素材画像設定用ページ13の情報が送信され、ブラウザ42によって素材画像設定用ページ13が表示手段44に表示される。この素材画像設定用ページ13には、素材画像17a〜17cが表示され、さらに素材画像17a〜17cのいずれかを選択するためのチェックボックス13aが設けられている。   In response to the transmission of the posted text, the application server 10 transmits information on the material image setting page 13 as shown in FIG. 3C, and the material image setting page 13 is displayed on the display unit 44 by the browser 42. Is displayed. The material image setting page 13 displays material images 17a to 17c, and further includes a check box 13a for selecting any of the material images 17a to 17c.

端末装置40のユーザは、上述のように投稿した投稿文に関連すると考える素材画像を素材画像17a〜17cの中から選択する。素材画像の選択は、操作手段43への操作によって、素材画像に対応するチェックボックス13aにチェックを入れ、設定ボタン13bを押下することによって行う。   The user of the terminal device 40 selects a material image considered to be related to the posted text posted as described above from the material images 17a to 17c. The material image is selected by checking the check box 13a corresponding to the material image by operating the operation means 43 and pressing the setting button 13b.

これにより、ユーザが選択した素材画像の素材IDがアプリケーションサーバ10へ送信される。そして、アプリケーションサーバ10へ送信された投稿文および素材IDなどは投稿情報の要素として投稿情報蓄積サーバ20へ送信され、投稿情報蓄積サーバ20に蓄積される。この投稿情報を端末装置40において閲覧する場合、その閲覧画像は、例えば、図3の(D)に示すように、素材画像17aと投稿文16とが隣接して配置される画像となる。   Thereby, the material ID of the material image selected by the user is transmitted to the application server 10. Then, the posted text and the material ID transmitted to the application server 10 are transmitted to the posted information storage server 20 as elements of the posted information and stored in the posted information storage server 20. When the posted information is browsed on the terminal device 40, the browsed image is an image in which the material image 17a and the posted text 16 are arranged adjacent to each other as shown in FIG.

このように、投稿文の内容に関連する素材画像を設定することで、投稿を楽しんで行え、また、図3の(D)に示すように投稿内容の把握がしやすくなる。そのため、本実施形態に係るブログサービスシステムSでは、ユーザが利用しやすく、魅力的なブログサービスを提供することができる。   Thus, by setting the material image related to the content of the posted text, it is possible to enjoy the posting, and it becomes easy to grasp the posted content as shown in FIG. Therefore, the blog service system S according to the present embodiment can provide an attractive blog service that is easy for the user to use.

しかも、本実施形態に係るブログサービスシステムSでは、たとえば、TOPページ11の「使用素材画像一覧」を選択することにより、素材画像を指定した検索を行うことができるようにしている。   In addition, in the blog service system S according to the present embodiment, for example, by selecting “used material image list” on the TOP page 11, a search specifying a material image can be performed.

操作手段43への操作によってTOPページ11の「使用素材画像一覧」が選択された場合、ブラウザ42からその選択情報がアプリケーションサーバ10へ送信される。この選択情報の送信に対し、アプリケーションサーバ10から使用素材画像一覧ページの情報が端末装置40へ送信される。   When the “use material image list” on the TOP page 11 is selected by operating the operation means 43, the selection information is transmitted from the browser 42 to the application server 10. In response to the transmission of the selection information, information on the used material image list page is transmitted from the application server 10 to the terminal device 40.

端末装置40のブラウザ42は、アプリケーションサーバ10から受信した情報に基づいて、図3の(E)に示すように、ユーザが投稿に使用した素材画像の一覧を示す使用素材画像一覧ページ15がブラウザ42によって表示手段44に表示される。なお、使用素材画像一覧ページ15には、ユーザが投稿に使用した素材画像と件数とが一覧表示される。図3の(E)に示す例では、素材画像17aの投稿件数が10件、素材画像17cの投稿件数が8件であることを示している。   Based on the information received from the application server 10, the browser 42 of the terminal device 40 displays a used material image list page 15 showing a list of material images used for posting by the user, as shown in FIG. 42 is displayed on the display means 44. The used material image list page 15 displays a list of material images and the number of items used by the user for posting. In the example shown in FIG. 3E, it is shown that the number of submissions of the material image 17a is 10 and the number of submissions of the material image 17c is 8.

この使用素材画像一覧ページ15は、アプリケーションサーバ10が投稿情報インデックスサーバ30に要求して取得した情報に基づいて生成されるものである。具体的には、アプリケーションサーバ10は、端末装置40から送信される使用素材画像一覧要求に対応する情報を投稿情報インデックスサーバ30へ要求する。   The use material image list page 15 is generated based on information acquired by the application server 10 requesting the posting information index server 30 and acquiring it. Specifically, the application server 10 requests the post information index server 30 for information corresponding to the used material image list request transmitted from the terminal device 40.

さらに、使用素材画像一覧ページ15では、表示されている素材画像を選択可能となっている。例えば、図3の(E)に示す使用素材画像一覧ページ15において、例えば、素材画像17aや素材情報15a(「ひま〜」)を操作手段43への操作によって選択した場合、ブラウザ42からその選択情報がアプリケーションサーバ10へ送信される。この選択情報の送信に対し、アプリケーションサーバ10から素材画像詳細ページの情報が端末装置40へ送信される。   Further, on the used material image list page 15, a displayed material image can be selected. For example, in the use material image list page 15 shown in FIG. 3E, for example, when the material image 17a or the material information 15a ("Hima ~") is selected by operating the operation means 43, the selection is made from the browser 42. Information is transmitted to the application server 10. In response to the transmission of the selection information, information on the material image detail page is transmitted from the application server 10 to the terminal device 40.

端末装置40のブラウザ42は、アプリケーションサーバ10から受信した情報に基づいて、図3の(F)に示すように、ユーザが選択した素材画像の詳細を示す素材画像詳細ページ16がブラウザ42によって表示手段44に表示される。素材画像詳細ページ16には、選択された素材画像の投稿件数や投稿者の情報などが表示される。図3の(F)に示す例では、素材画像17aの総投稿件数が82176件、投稿件数が多いユーザのうち1位から3位までのユーザが、○○さん(ユーザID「543261」)、△△さん(ユーザID「529076」)、□□さん(ユーザID「175433」)であることを示している。また、素材画像17aがすべての素材画像のうち「234」番目に投稿件数が多いことを示している。   Based on the information received from the application server 10, the browser 42 of the terminal device 40 displays the material image detail page 16 showing the details of the material image selected by the user by the browser 42 as shown in FIG. It is displayed on the means 44. The material image detail page 16 displays the number of posts of the selected material image, information on the poster, and the like. In the example shown in FIG. 3F, the total number of postings of the material image 17a is 82176, and the users who are first to third among the many postings are Mr. XX (user ID “543261”), It is shown that they are Mr. △△ (user ID “529076”) and □□ (user ID “175433”). In addition, the material image 17a indicates that the number of posts is “234th” among all the material images.

以上のように、本実施形態に係るブログサービスシステムSでは、端末装置40のユーザから投稿文や対応する素材画像を投稿情報として投稿可能とし、また、ユーザが投稿に使用した素材画像の一覧や素材画像の詳細などを端末装置40のユーザから閲覧可能としている。このように構成されるブログサービスシステムSについて、以下、投稿情報蓄積サーバ20および投稿情報インデックスサーバ30の構成について詳細に説明する。   As described above, in the blog service system S according to the present embodiment, a posting sentence and a corresponding material image can be posted as posting information from the user of the terminal device 40, and a list of material images used by the user for posting Details of the material image and the like can be viewed from the user of the terminal device 40. Regarding the blog service system S configured as described above, the configuration of the posted information storage server 20 and the posted information index server 30 will be described in detail below.

[2.1.投稿情報蓄積サーバ20の構成]
図4に投稿情報蓄積サーバ20の構成を示す。図4に示すように、投稿情報蓄積サーバ20は、通信インタフェース(I/F)21と、投稿情報データベース22と、制御部23とを備えている。
[2.1. Configuration of Post Information Storage Server 20]
FIG. 4 shows the configuration of the posted information storage server 20. As illustrated in FIG. 4, the posted information storage server 20 includes a communication interface (I / F) 21, a posted information database 22, and a control unit 23.

通信I/F21は、投稿情報蓄積サーバ20をLAN経由でアプリケーションサーバ10や投稿情報インデックスサーバ30と接続できるようにするためのインタフェースであり、例えば、イーサネット(登録商標)・アダプタを含む。   The communication I / F 21 is an interface for enabling the posting information storage server 20 to be connected to the application server 10 and the posting information index server 30 via a LAN, and includes, for example, an Ethernet (registered trademark) adapter.

投稿情報データベース22は、端末装置401〜40nのユーザからの投稿に関する情報を蓄積するデータベースである。この投稿情報データベース22は、キーバリュー型のデータベースであり、複数の検索キーに関連づけて投稿情報の各要素が蓄積される。上述したように、キーバリュー型のデータベースは、データベースの増設や情報の分散配置が容易であることからブログサービスシステムSなどのように蓄積する情報が増加するシステムに適したデータベースである。 The posting information database 22 is a database that accumulates information related to postings from users of the terminal devices 40 1 to 40 n . The posted information database 22 is a key-value database, and each element of posted information is stored in association with a plurality of search keys. As described above, the key-value database is a database suitable for a system in which accumulated information increases, such as the blog service system S, because it is easy to expand the database and distribute information.

ここで、投稿情報データベース22に蓄積される投稿情報の一例を具体的に説明する。図5は、投稿情報データベース22のデータ構成の一例を示す図である。   Here, an example of the posting information stored in the posting information database 22 will be specifically described. FIG. 5 is a diagram illustrating an example of the data configuration of the posting information database 22.

図5に示すように、投稿情報は、キースペース「メイン」に属するカラムファミリーのうち、「投稿」というカラムファミリーに割り当てられる。各投稿情報には、投稿IDである投稿IDが割り当てられ、さらに、投稿情報の各要素にも、それぞれ検索キーが割り当てられている。   As illustrated in FIG. 5, the posting information is assigned to a column family “post” among the column families belonging to the key space “main”. Each posting information is assigned a posting ID, which is a posting ID, and a search key is also assigned to each element of the posting information.

具体的には、投稿情報の要素には、投稿文、投稿種別、ユーザID、投稿日時、素材IDなどがあり、それぞれ検索キーに割り当てられる。図5に示す例では、投稿IDが「111」である投稿に関する情報として、例えば、投稿文として「ねむすぎ#ひま」、投稿種別として「0」、ユーザIDとして「555」、投稿日時として「2010年12月28日20時14分27秒」、素材IDとして「543228」がそれぞれ蓄積されていることを示している。   Specifically, the posted information elements include a posted sentence, a posting type, a user ID, a posting date and time, a material ID, and the like, each assigned to a search key. In the example shown in FIG. 5, as information related to a post having a post ID “111”, for example, “Nemu Togashi #Hima” as a post sentence, “0” as a post type, “555” as a user ID, and “ “December 28, 2010, 20:14:27” and “543228” as the material ID are stored.

この投稿情報データベース22から投稿情報の要素として、例えば、投稿IDが「111」の素材IDを検索する場合、検索式は次のようになる。
検索式=[メイン][投稿][111][素材ID]
For example, when searching for a material ID having a posting ID “111” as an element of posting information from the posting information database 22, the search formula is as follows.
Search formula = [main] [post] [111] [material ID]

図4の説明に戻って投稿情報蓄積サーバ20の構成の説明を続ける。制御部23は、投稿情報蓄積サーバ20の全体制御を行う制御部である。制御部23は、受信手段23aと、受付手段23bと、記憶処理手段23cと、取得手段23dと、送信手段23eとをさらに備えている。   Returning to the description of FIG. 4, the description of the configuration of the posted information storage server 20 is continued. The control unit 23 is a control unit that performs overall control of the posted information storage server 20. The control unit 23 further includes a receiving unit 23a, a receiving unit 23b, a storage processing unit 23c, an acquiring unit 23d, and a transmitting unit 23e.

なお、図4には、制御部23の機能的な構成を示しているが、この制御部23は、物理的にはCPU(Central Processing Unit)とフラッシュメモリ(flash memory)とRAM(Random Access Memory)とを有する情報処理装置を備えている。そして、CPUがフラッシュメモリからプログラムを読出し、RAMを作業領域として使用して実行することにより、上述した各手段23a〜23e等として機能する。   4 shows a functional configuration of the control unit 23. The control unit 23 is physically composed of a CPU (Central Processing Unit), a flash memory, and a RAM (Random Access Memory). ). The CPU reads out the program from the flash memory and executes it using the RAM as a work area, thereby functioning as the above-described means 23a to 23e.

受信手段23aは、通信I/F21を介してアプリケーションサーバ10から送信される投稿情報や投稿情報インデックスサーバ30から送信される検索要求信号を受信する。   The receiving unit 23 a receives post information transmitted from the application server 10 and a search request signal transmitted from the post information index server 30 via the communication I / F 21.

受付手段23bは、受信手段23aによって受信した情報を受け付ける。例えば、受信手段23aによってアプリケーションサーバ10からの投稿情報が受信された場合、受付手段23bは、この投稿情報が蓄積すべき範囲のものであるか否かを判定し、蓄積すべき範囲であると判定した場合に、投稿情報を記憶処理手段23cへ出力する。この場合、投稿情報がオリジナルの情報であれば、投稿情報のレプリカ(複製)を、他の投稿情報蓄積サーバ20へ送信手段23eから送信させる。また、投稿情報が蓄積すべき範囲ではないと判定した場合も同様に、受付手段23bは、投稿情報を蓄積すべき他の投稿情報蓄積サーバ20へ送信手段23eから送信させる。   The accepting unit 23b accepts the information received by the receiving unit 23a. For example, when posting information from the application server 10 is received by the receiving unit 23a, the receiving unit 23b determines whether or not the posting information is within a range to be accumulated, and is within a range to be accumulated. If it is determined, the posted information is output to the storage processing unit 23c. In this case, if the posted information is original information, a replica (duplicate) of the posted information is transmitted from the transmitting unit 23e to the other posted information storage server 20. Similarly, when it is determined that the posted information is not in the range to be accumulated, the accepting unit 23b causes the transmitting unit 23e to transmit to the other posted information accumulation server 20 in which the posted information is to be accumulated.

また、受付手段23bは、投稿情報インデックスサーバ30から検索要求信号が受信手段23aによって受信された場合、検索要求信号に含まれる検索内容の情報を取得手段23dへ出力する。   In addition, when the search request signal is received from the posting information index server 30 by the receiving unit 23a, the reception unit 23b outputs the search content information included in the search request signal to the acquisition unit 23d.

記憶処理手段23cは、受付手段23bによって受け付けた投稿情報に投稿IDを関連づけて投稿情報データベース22に蓄積する。   The storage processing unit 23c associates the posting ID with the posting information received by the receiving unit 23b and accumulates it in the posting information database 22.

取得手段23dは、受付手段23bから出力された検索内容の情報に基づき、投稿情報データベース22を参照して検索内容に応じた情報(以下、検索結果情報と記載する)を取得する。投稿情報データベース22は、上述したように、キーバリュー型のデータベースであり、取得手段23dは、検索キーによって投稿情報データベース22から情報を取得する。   The acquisition unit 23d acquires information corresponding to the search content (hereinafter referred to as search result information) with reference to the posting information database 22 based on the search content information output from the reception unit 23b. As described above, the posting information database 22 is a key-value database, and the acquisition unit 23d acquires information from the posting information database 22 using a search key.

例えば、投稿情報インデックスサーバ30から、全ての投稿情報に関する素材IDの情報を検索する要求が検索内容として検索要求信号に含まれているとする。この場合、取得手段23dは、[メイン][投稿][100][素材ID]から[メイン][投稿][100000][素材ID]までを検索キーによって検索をして、投稿情報データベース22から素材IDの情報を取得する。なお、投稿情報データベース22には、投稿IDが「100」から「100000」までの投稿情報が記憶されているとする。   For example, it is assumed that a request for searching for material ID information related to all post information from the post information index server 30 is included in the search request signal as search contents. In this case, the acquisition means 23d searches from the post information database 22 using the search key from [main] [post] [100] [material ID] to [main] [post] [100000] [material ID]. Obtain material ID information. It is assumed that the posting information database 22 stores posting information with posting IDs “100” to “100000”.

また、例えば、投稿情報インデックスサーバ30から、範囲を指定した投稿情報に関する素材IDの情報を検索する要求が検索内容として検索要求信号に含まれているとする。この場合、取得手段23dは、指定された範囲に含まれる投稿情報の素材IDを検索キーによって検索をして、投稿情報データベース22から素材IDの情報を取得する。例えば、投稿IDが「10001」から「30000」までの範囲が指定された場合、取得手段23dは、[メイン][投稿][10001][素材ID]から[メイン][投稿][30000][素材ID]までを検索キーによって検索をする。   Further, for example, it is assumed that a request for searching for material ID information related to post information for which a range is specified is included in the search request signal as search contents from the post information index server 30. In this case, the acquiring unit 23d searches for the material ID of the posted information included in the designated range by using the search key, and acquires the material ID information from the posted information database 22. For example, when the post ID is in a range from “10001” to “30000”, the acquisition unit 23d selects [main] [post] [10001] [material ID] to [main] [post] [30000] [ Search up to “Material ID” with the search key.

送信手段23eは、例えば、取得手段23dによって取得された検索結果情報を投稿情報インデックスサーバ30へ送信する。   The transmission unit 23e transmits, for example, the search result information acquired by the acquisition unit 23d to the posting information index server 30.

[2.2.投稿情報インデックスサーバ30の構成]
図6に投稿情報インデックスサーバ30の構成を示す。図6に示すように、投稿情報インデックスサーバ30は、通信インタフェース(I/F)31と、投稿情報インデックスデータベース32と、制御部33とを備えている。
[2.2. Configuration of Post Information Index Server 30]
FIG. 6 shows the configuration of the posting information index server 30. As illustrated in FIG. 6, the posting information index server 30 includes a communication interface (I / F) 31, a posting information index database 32, and a control unit 33.

通信I/F31は、投稿情報インデックスサーバ30をLAN経由でアプリケーションサーバ10や投稿情報蓄積サーバ20と接続できるようにするためのインタフェースであり、例えば、イーサネット(登録商標)・アダプタを含む。   The communication I / F 31 is an interface for enabling the posting information index server 30 to be connected to the application server 10 and the posting information storage server 20 via a LAN, and includes, for example, an Ethernet (registered trademark) adapter.

投稿情報インデックスデータベース32は、投稿情報蓄積サーバ20から制御部33によって取得された投稿情報の素材IDに関する情報を記憶する記憶手段である。この投稿情報インデックスデータベース32は、例えば、リレーショナル型のデータベースであり、キャッシュデータの蓄積、読み出し、更新は、例えば、SQL(Structured Query Language)に従ったコマンドが用いられる。   The posted information index database 32 is a storage unit that stores information related to the material ID of posted information acquired from the posted information storage server 20 by the control unit 33. The posted information index database 32 is, for example, a relational database, and commands according to, for example, SQL (Structured Query Language) are used to store, read, and update cache data.

ここで、投稿情報インデックスデータベース32に管理される情報について図面を参照して具体的に説明する。図7は、投稿情報インデックスデータベース32のデータ構成の一例を示す図である。   Here, the information managed in the posting information index database 32 will be specifically described with reference to the drawings. FIG. 7 is a diagram illustrating an example of a data configuration of the posting information index database 32.

投稿情報インデックスデータベース32では、素材IDの集計情報として、ユーザID単位で素材IDの集計情報、総投稿情報に対する素材IDの集計情報、複数又はすべてのユーザID単位での素材IDの集計情報などを蓄積している。   In the posting information index database 32, the material ID total information includes the material ID total information for each user ID, the material ID total information for the total post information, and the material ID total information for a plurality or all user ID units. Accumulated.

具体的には、投稿情報インデックスデータベース32では、図7の(A)に示すように、ユーザID毎に、素材IDと投稿件数とを関連づけて記憶している。例えば、図7の(A)に示す例では、ユーザIDが「555」であるユーザに対して、「543228」である素材IDの投稿件数が「10」であり、「287630」である素材IDの投稿件数が「24」であることを示している。   Specifically, in the posting information index database 32, as shown in FIG. 7A, the material ID and the number of postings are stored in association with each user ID. For example, in the example shown in FIG. 7A, for the user whose user ID is “555”, the number of posts of the material ID “543228” is “10” and the material ID is “287630”. This indicates that the number of posts of “24” is “24”.

また、投稿情報インデックスデータベース32では、図7の(B)に示すように、総投稿情報に対する素材IDの集計情報を蓄積している。図7の(B)に示す例では、素材ID「543228」について、投稿件数が「82176」、投稿件数が多いユーザのうち1番(投稿者(第1位))から3番(投稿者(第3位))までのユーザIDが「543261」,「529076」,「175433」であることを示している。また、素材ID「543228」の素材画像がすべての素材IDのうち「234」番目に投稿件数が多いことを示している。   Further, in the posted information index database 32, as shown in FIG. 7B, accumulated information of material IDs for the total posted information is accumulated. In the example shown in FIG. 7B, for the material ID “543228”, the number of postings is “82176” and the number of postings is the highest among the users (poster (first place)) to the third (poster (poster ( It is shown that the user IDs up to the third place)) are “543261”, “529076”, and “175433”. Further, the material image of the material ID “543228” indicates that the number of posts is the “234” th most among all the material IDs.

図6に戻って投稿情報インデックスサーバ30の構成についての説明を続ける。制御部33は、投稿情報インデックスサーバ30の全体制御を行う制御部である。制御部33は、送信手段33aと、受信手段33bと、受付手段33cと、収集手段33dと、記憶処理手段33eとをさらに備えている。   Returning to FIG. 6, the description of the configuration of the posting information index server 30 will be continued. The control unit 33 is a control unit that performs overall control of the posting information index server 30. The control unit 33 further includes transmission means 33a, reception means 33b, reception means 33c, collection means 33d, and storage processing means 33e.

なお、図6には、制御部33の機能的な構成を示しているが、この制御部33は、物理的にはCPU(Central Processing Unit)とフラッシュメモリ(flash memory)とRAM(Random Access Memory)とを有する情報処理装置を備えている。そして、CPUがフラッシュメモリからデータベース管理プログラムを読出し、RAMを作業領域として使用して実行することにより、上述した各手段33a〜33e等として機能する。   6 shows a functional configuration of the control unit 33. The control unit 33 is physically configured by a CPU (Central Processing Unit), a flash memory, and a RAM (Random Access Memory). ). The CPU reads the database management program from the flash memory and executes it using the RAM as a work area, thereby functioning as the above-described means 33a to 33e.

送信手段33aは、例えば、投稿情報インデックスデータベース32に蓄積されている情報である素材IDの集計情報を通信I/F31を介してアプリケーションサーバ10へ送信し、また、検索を要求する検索要求信号を通信I/F31を介して投稿情報蓄積サーバ20へ送信する。   The transmission unit 33a transmits, for example, aggregate information of material IDs, which are information stored in the posted information index database 32, to the application server 10 via the communication I / F 31, and also transmits a search request signal for requesting a search. It transmits to the posting information storage server 20 via the communication I / F 31.

受信手段33bは、例えば、通信I/F31を介してアプリケーションサーバ10から送信される情報要求信号や投稿情報蓄積サーバ20から送信される検索結果情報を受信する。情報要求信号は、アプリケーションサーバ10から投稿情報インデックスサーバ30に対して情報の送信要求を行うための信号であり、検索内容の情報が含まれる。   The receiving unit 33b receives, for example, the information request signal transmitted from the application server 10 and the search result information transmitted from the posting information storage server 20 via the communication I / F 31. The information request signal is a signal for making an information transmission request from the application server 10 to the posted information index server 30 and includes information on search contents.

受付手段33cは、受信手段33bによって受信した情報要求信号を受け付け、この情報要求信号に対応する情報を投稿情報インデックスデータベース32から読み出して、アプリケーションサーバ10へ送信手段33aから送信させる。   The accepting means 33c accepts the information request signal received by the receiving means 33b, reads information corresponding to the information request signal from the posted information index database 32, and causes the application server 10 to transmit from the sending means 33a.

例えば、図7の(A)に示すように情報が投稿情報インデックスデータベース32に蓄積されている場合に、情報要求信号に含まれる検索内容の情報が「555」であるユーザIDのユーザによって使用されている素材画像の情報であるとする。この場合、受付手段33cは、ユーザID「555」をインデックスとして指定して投稿情報インデックスデータベース32からユーザID「555」に対応づけられた素材IDおよび投稿件数を全て読み出し、検索結果として送信手段13aからアプリケーションサーバ10へ送信させる。   For example, when information is accumulated in the posted information index database 32 as shown in FIG. 7A, the information of the search content included in the information request signal is used by the user with the user ID “555”. It is assumed that the information is a material image. In this case, the accepting unit 33c specifies the user ID “555” as an index, reads all the material IDs and the number of posts associated with the user ID “555” from the post information index database 32, and transmits the search unit 13a as a search result. To the application server 10.

収集手段33dは、検索内容の情報を含む検索要求信号を送信手段13aから投稿情報蓄積サーバ20へ送信させる。投稿情報蓄積サーバ20は、検索要求信号に含まれる検索内容の情報に基づき、投稿情報データベース22を参照して検索内容に応じた情報を取得し、投稿情報インデックスサーバ30へ送信する。   The collection unit 33d causes the transmission unit 13a to transmit a search request signal including information about the search contents to the posted information storage server 20. The posting information storage server 20 refers to the posting information database 22 based on the information of the search contents included in the search request signal, acquires information according to the search contents, and transmits the information to the posting information index server 30.

収集手段33dは、情報要求信号に含まれる検索内容の情報を投稿情報蓄積サーバ20から収集すると、集計処理を行って記憶処理手段33eへ出力し、集計処理の結果を投稿情報インデックスデータベース32に蓄積させる。   When the collecting means 33d collects the information of the search contents included in the information request signal from the posted information storage server 20, the collecting means 33d performs a counting process and outputs it to the storage processing means 33e, and stores the result of the counting process in the posted information index database 32. Let

例えば、検索要求信号に含まれる検索内容の情報が全ての投稿情報に関する素材IDの情報を検索する要求の情報である場合、投稿情報蓄積サーバ20の取得手段23dは、全ての投稿IDの素材IDを取得して投稿情報インデックスサーバ30へ送信する。   For example, when the information of the search content included in the search request signal is information of a request for searching for material ID information related to all post information, the acquisition unit 23d of the post information storage server 20 uses the material ID of all post IDs. Is transmitted to the posting information index server 30.

収集手段33dは、全ての投稿情報(例えば、投稿IDが「100」から「100000」までの投稿情報があるとする)に関する素材IDの情報を投稿情報蓄積サーバ20から収集すると、ユーザID単位で素材ID別の数を集計する。例えば、ユーザID「283」を要素とする投稿情報に含まれる素材IDとして「837457」,「257638」,「837457」,「837457」,「257638」が投稿情報蓄積サーバ20から送信されたとする。この場合、収集手段33dは、素材ID「837457」の投稿件数を「3」とし、素材ID「257638」の投稿件数を「2」とする。これが収集手段33dの集計結果となる。   When the collecting unit 33d collects material ID information from the posting information storage server 20 regarding all posting information (for example, posting information with posting IDs “100” to “100000”), the collecting unit 33d collects the information for each user ID. The number by material ID is totaled. For example, it is assumed that “833457”, “257638”, “833457”, “83457”, and “257638” are transmitted from the posted information storage server 20 as material IDs included in the posted information having the user ID “283” as an element. In this case, the collection unit 33d sets the number of posts of the material ID “83457” to “3” and the number of posts of the material ID “257638” to “2”. This is the totaling result of the collecting means 33d.

また、収集手段33dは、全ての投稿情報に関する素材IDの情報を集めた場合、次は、投稿情報蓄積サーバ20に新たに蓄積された投稿情報に関してのみ素材IDの収集を行うことができる。これにより、毎回全ての投稿情報に関する素材IDの情報を収集して集計する場合に比べ、投稿情報蓄積サーバ20および投稿情報インデックスサーバ30の処理負荷や通信負荷などを低減することができる。   In addition, when the collecting unit 33d collects material ID information related to all posted information, the collecting means 33d can collect material IDs only for posted information newly stored in the posted information storage server 20 next time. Thereby, compared with the case where the information of material ID regarding all the contribution information is collected and totaled every time, the processing load, the communication load, etc. of the contribution information storage server 20 and the contribution information index server 30 can be reduced.

収集手段33dは、例えば、投稿IDが「100000」までの素材IDを収集して集計している場合、投稿IDが「100000」よりも大きい投稿IDの投稿情報に関する素材IDの情報を投稿情報蓄積サーバ20へ要求する。そして、収集手段33dは、この要求に対して投稿情報蓄積サーバ20から送信される情報に基づいて、投稿情報インデックスデータベース32に蓄積された集計情報を更新する。   For example, when the collection unit 33d collects and totals material IDs up to a post ID “100000”, the collection unit 33d accumulates post ID information related to post information with a post ID greater than “100000”. Request to server 20. Then, the collecting unit 33d updates the aggregate information stored in the posted information index database 32 based on information transmitted from the posted information storage server 20 in response to this request.

例えば、ユーザID「283」に関する集計結果として、上述のように、素材ID「837457」の投稿件数が「3」であり、素材ID「257638」の投稿件数が「2」であるとする。そして、投稿IDが「100000」よりも大きい投稿IDの投稿情報のうちユーザID「283」に関する投稿情報の素材IDの情報として、「837457」,「837457」,「257638」が投稿情報蓄積サーバ20から送信されたとする。この場合、収集手段33dは、ユーザID「283」に関する集計結果を、素材ID「837457」の投稿件数が「5」であり、素材ID「257638」の投稿件数を「3」へ更新する。   For example, as a totaling result regarding the user ID “283”, as described above, the number of posts of the material ID “83457” is “3” and the number of posts of the material ID “257638” is “2”. As the information of the material ID of the posted information related to the user ID “283” of the posted information with the posted ID larger than “100,000”, “833457”, “8345747”, and “257638” are the posted information storage server 20. Is sent from. In this case, the collection unit 33d updates the count result regarding the user ID “283” with the number of posts of the material ID “833457” being “5” and the number of posts of the material ID “257638” to “3”.

記憶処理手段33eは、収集手段33dの集計結果を投稿情報インデックスデータベース32に蓄積する。これにより、例えば、図7の(A)や(B)に示すような素材IDの集計情報が投稿情報インデックスデータベース32に蓄積される。   The storage processing unit 33e stores the aggregation results of the collecting unit 33d in the posting information index database 32. As a result, for example, aggregate information of material IDs as shown in FIGS. 7A and 7B is accumulated in the posting information index database 32.

以上のように構成された投稿情報蓄積サーバ20の具体的動作について図8を用いて説明する。図8は、投稿情報蓄積サーバ20の制御部23が実行する処理手順を示すフローチャートである。   A specific operation of the posted information storage server 20 configured as described above will be described with reference to FIG. FIG. 8 is a flowchart showing a processing procedure executed by the control unit 23 of the posted information storage server 20.

この処理は、繰り返し行われる処理であり、制御部23を構成するCPUがフラッシュメモリに記憶されたプログラムに基づき処理を行なって実行されるが、図4に示した機能ブロックとの関係を分かりやすくする為、便宜的に各機能ブロックが実行するという表現を用いて説明する。   This process is a process that is repeatedly performed. The CPU that constitutes the control unit 23 performs the process based on the program stored in the flash memory, and it is easy to understand the relationship with the functional blocks shown in FIG. Therefore, for the sake of convenience, description will be made using the expression that each functional block is executed.

図8に示すように、投稿情報蓄積サーバ20において、受付手段23bは、アプリケーションサーバ10から投稿情報を受け付けたか否かを判定する(ステップS10)。この処理において、投稿情報を受け付けたと判定すると(ステップS10,Yes)、受付手段23bは、受け付けた投稿情報が蓄積すべき範囲のものであるか否かを判定する(ステップS11)。   As shown in FIG. 8, in the posted information storage server 20, the accepting unit 23b determines whether or not posted information has been received from the application server 10 (step S10). In this process, if it is determined that the posted information has been received (step S10, Yes), the receiving unit 23b determines whether the received posted information is within a range to be accumulated (step S11).

受付手段23bによって受け付けた投稿情報が蓄積すべき範囲のものである場合(ステップS11,Yes)、記憶処理手段23cは、受け付けた投稿情報に投稿IDを関連づけて投稿情報データベース22に蓄積する(ステップS12)。また、送信手段23eは、投稿情報のレプリカ(複製)を他の投稿情報蓄積サーバ20へ送信して蓄積させる(ステップS13)。   When the posted information received by the receiving unit 23b is within the range to be accumulated (step S11, Yes), the storage processing unit 23c stores the posted ID in association with the received posted information in the posted information database 22 (step S11). S12). In addition, the transmission unit 23e transmits a post information replica (duplicate) to another post information storage server 20 for storage (step S13).

ステップS11において、受付手段23bによって受け付けた投稿情報が蓄積すべき範囲のものでない場合(ステップS11,No)、送信手段23eは、受付手段23bによって受け付けた投稿情報を他の投稿情報蓄積サーバ20へ転送する(ステップS14)。   In step S11, when the posted information received by the receiving unit 23b is not within the range to be stored (step S11, No), the transmitting unit 23e sends the posted information received by the receiving unit 23b to another posted information storage server 20. Transfer (step S14).

また、ステップS10において、投稿情報を受け付けていないと判定すると(ステップS10,No)、受付手段23bは、投稿情報インデックスサーバ30から検索要求信号を受け付けたか否かを判定する(ステップS15)。この処理において、検索要求信号を受け付けたと判定されると(ステップS15,Yes)、取得手段23dは、検索要求信号に含まれる検索内容に応じた情報(検索結果情報)を投稿情報データベース22から取得し、送信手段23eは、検索結果情報を投稿情報インデックスサーバ30へ送信する(ステップS16)。   If it is determined in step S10 that post information has not been received (step S10, No), the receiving unit 23b determines whether a search request signal has been received from the post information index server 30 (step S15). In this process, if it is determined that the search request signal is received (step S15, Yes), the acquisition unit 23d acquires information (search result information) according to the search content included in the search request signal from the posted information database 22. Then, the transmission unit 23e transmits the search result information to the posting information index server 30 (step S16).

さらに、送信手段23eは、ステップS16で検索する投稿情報のレプリカを有する他の投稿情報蓄積サーバ20に対して投稿情報インデックスサーバ30へレプリカを送信するように要求し、他の投稿情報蓄積サーバ20から投稿情報インデックスサーバ30へ複製を送信させる(ステップS17)。   Further, the transmission unit 23e requests the other posting information storage server 20 having the replica of the posting information searched in step S16 to transmit the replica to the posting information index server 30, and the other posting information storage server 20 Is sent to the posting information index server 30 (step S17).

一方、ステップS15において、投稿情報インデックスサーバ30から検索要求信号を受け付けていないと判定すると(ステップS15,No)、制御部23はその他の要求に応じた処理を行う(ステップS18)。ステップS13、S14、S17,S18の処理が終了したとき、図8に示す処理を終了する。   On the other hand, if it is determined in step S15 that a search request signal has not been received from the posting information index server 30 (step S15, No), the control unit 23 performs processing according to other requests (step S18). When the processes of steps S13, S14, S17, and S18 are finished, the process shown in FIG. 8 is finished.

次に、投稿情報インデックスサーバ30の具体的動作について図9を用いて説明する。図9は、投稿情報インデックスサーバ30の制御部33が実行する処理手順を示すフローチャートである。   Next, a specific operation of the posting information index server 30 will be described with reference to FIG. FIG. 9 is a flowchart showing a processing procedure executed by the control unit 33 of the posting information index server 30.

この処理は、繰り返し行われる処理であり、制御部33を構成するCPUがフラッシュメモリに記憶されたデータベース管理プログラムに基づき処理を行なって実行されるが、図6に示した機能ブロックとの関係を分かりやすくする為、便宜的に各機能ブロックが実行するという表現を用いて説明する。   This process is a process that is repeatedly performed. The CPU constituting the control unit 33 performs the process based on the database management program stored in the flash memory, and the relationship with the functional blocks shown in FIG. For the sake of simplicity, description will be made using the expression that each functional block is executed for convenience.

図9に示すように、投稿情報インデックスサーバ30において、収集手段33dは、情報収集契機になったか否かを判定する(ステップS20)。例えば、収集手段33dは、所定期間(例えば、5秒毎)に情報収集契機となったと判定する。   As shown in FIG. 9, in the posting information index server 30, the collection unit 33d determines whether or not an information collection opportunity has been triggered (step S20). For example, the collection unit 33d determines that the information collection trigger has been triggered during a predetermined period (for example, every 5 seconds).

この処理において、情報収集契機になったと判定すると(ステップS20,Yes)、収集手段33dは、情報収集契機となったと判定した集計情報を生成又は更新するための素材IDの情報を投稿情報蓄積サーバ20へ要求する(ステップS21)。収集手段33dは、投稿情報蓄積サーバ20から素材IDの情報を収集すると、素材IDの情報を集計して集計情報を生成又は更新する(ステップS22)。そして、記憶処理手段33eは、収集手段によって生成又は更新された集計情報を投稿情報インデックスデータベース32に蓄積する(ステップS23)。   In this process, if it is determined that an information collection opportunity has been reached (Yes in step S20), the collection unit 33d displays information on a material ID for generating or updating the aggregate information determined to have been an information collection opportunity. 20 is requested (step S21). When collecting the material ID information from the posting information storage server 20, the collecting unit 33d aggregates the material ID information and generates or updates the total information (step S22). Then, the storage processing unit 33e accumulates the total information generated or updated by the collecting unit in the posted information index database 32 (step S23).

なお、上述のように投稿情報蓄積サーバ20には、レプリカ(複製)を生成して分散して蓄積され、複製も投稿情報インデックスサーバ30へ送信される。収集手段33dは、レプリカを含めた同一の情報のうち最新の情報を選択して集計処理に用いる。投稿情報インデックスサーバ30で管理される情報にはタイムスタンプ(時間情報)が付加されており、収集手段33dは、タイムスタンプを参照して最新の情報かどうかの判断を行う。   As described above, the post information storage server 20 generates and distributes replicas (duplicates), and the replicas are also transmitted to the post information index server 30. The collecting unit 33d selects the latest information from the same information including the replica and uses it for the aggregation process. A time stamp (time information) is added to the information managed by the posting information index server 30, and the collecting unit 33d refers to the time stamp to determine whether the information is the latest information.

ステップS20において、情報収集契機となっていないと判定すると(ステップS20、No)、受付手段33cは、アプリケーションサーバ10から情報要求信号を受け付けたか否かを判定する(ステップS24)。この処理において、情報要求信号を受け付けたと判定すると(ステップS24,Yes)、受付手段33cは、投稿情報インデックスデータベース32から情報要求信号に対応する集計情報を読み出し、送信手段33aによってアプリケーションサーバ10へ送信する(ステップS25)。   If it is determined in step S20 that the information collection trigger has not been reached (step S20, No), the receiving unit 33c determines whether an information request signal has been received from the application server 10 (step S24). In this process, if it is determined that the information request signal is received (step S24, Yes), the receiving unit 33c reads the aggregate information corresponding to the information request signal from the posted information index database 32 and transmits it to the application server 10 by the transmitting unit 33a. (Step S25).

一方、ステップS24において、情報要求信号を受け付けていないと判定すると(ステップS24、No)、制御部23はその他の要求に応じた処理を行う(ステップS26)。ステップS23、S25、S26の処理が終了したとき、図9に示す処理を終了する。   On the other hand, if it is determined in step S24 that an information request signal has not been received (step S24, No), the control unit 23 performs processing according to other requests (step S26). When the processes of steps S23, S25, and S26 are finished, the process shown in FIG. 9 is finished.

このように本実施形態に係る投稿情報インデックスサーバ30の制御部33は、データベース管理装置として、投稿情報データベース22(第1データベースの一例に相当)によって管理される情報を取得して投稿情報インデックスデータベース32(第2データベースの一例に相当)により管理させる。   As described above, the control unit 33 of the posted information index server 30 according to the present embodiment acquires information managed by the posted information database 22 (corresponding to an example of the first database) as a database management apparatus, and acquires the posted information index database. 32 (corresponding to an example of the second database).

投稿情報データベース22は、投稿文と当該投稿文に対して設定された画像の情報とを要素に含む投稿情報を受け付ける毎に、投稿情報の要素をそれぞれ複数の検索キーに関連付けて蓄積するデータベースである。   The post information database 22 is a database that stores post information elements in association with a plurality of search keys each time it accepts post information including post text and image information set for the post text as elements. is there.

そして、投稿情報インデックスサーバ30の制御部33は、投稿情報データベース22によって管理される投稿情報の要素のうち、素材IDの情報を収集し、収集した素材IDの情報を集計した集計情報を投稿情報インデックスデータベース32に記憶する。そして、制御部33は、投稿情報インデックスデータベース32に記憶された集計情報を外部装置からの要求に応じて外部装置へ送信する。   Then, the control unit 33 of the posting information index server 30 collects the material ID information among the elements of the posting information managed by the posting information database 22, and calculates the total information obtained by collecting the collected material ID information. Store in the index database 32. And the control part 33 transmits the total information memorize | stored in the contribution information index database 32 to an external device according to the request | requirement from an external device.

したがって、キーバリュー型の投稿情報データベース22において記憶される投稿情報のうち投稿文に設定される素材画像別の投稿数などの集計情報を投稿情報インデックスデータベース32から容易に検索することができる。しかも、外部装置からの要求毎に投稿情報データベース22を検索する必要がないため、投稿情報データベース22の低下を防止することが可能となる。   Accordingly, it is possible to easily search the posting information index database 32 for aggregate information such as the number of postings for each material image set in the posting text among the posting information stored in the key-value type posting information database 22. In addition, since it is not necessary to search the posting information database 22 for each request from the external device, it is possible to prevent the posting information database 22 from being lowered.

上述においては、投稿情報インデックスサーバ30が収集して蓄積する情報として素材IDの集計情報を一例として説明したが、例えば、収集手段33dによって収集した素材IDの情報を集計することなくそのまま投稿情報インデックスデータベース32へ記憶処理手段33eによって蓄積するようにしてもよい。また、集計結果と共に素材IDの情報を投稿情報インデックスデータベース32へ記憶処理手段33eによって蓄積するようにしてもよい。この場合、アプリケーションサーバ10は投稿情報インデックスサーバ30から素材IDの情報を収集し、集計して端末装置40へ送信することができる。   In the above description, the aggregated information of the material IDs has been described as an example of the information collected and accumulated by the posted information index server 30. You may make it accumulate | store in the database 32 by the memory | storage process means 33e. Further, the material ID information may be accumulated in the posting information index database 32 by the storage processing unit 33e together with the total result. In this case, the application server 10 can collect material ID information from the posting information index server 30, aggregate the information, and transmit it to the terminal device 40.

[3.その他の実施形態]
上述では、投稿情報インデックスサーバ30の制御部33は、投稿情報データベース22によって管理される投稿情報の要素である素材IDの情報を投稿情報データベース22から検索して収集する例を示したが、収集方法はこれに限られない。以下、具体的に説明する。
[3. Other Embodiments]
In the above description, the control unit 33 of the posting information index server 30 searches and collects information on material IDs, which are elements of posting information managed by the posting information database 22, from the posting information database 22. The method is not limited to this. This will be specifically described below.

(他の実施形態1)
まず、他の実施形態1について説明する。この実施形態では、投稿情報蓄積サーバ20が投稿情報を受け付けた場合に、投稿情報データベース22へ蓄積すると共に、投稿情報インデックスサーバ30へ送信する。これにより、投稿情報データベース22からの検索を必要としないため、投稿情報データベース22での処理負荷を軽減することができ、また、投稿情報データベース22のパフォーマンスの低下を防止することが可能となる。さらに、投稿情報データベース22に蓄積される投稿情報とリアルタイムに同期させ、投稿情報インデックスデータベース32の更新を行うことができる。
(Other embodiment 1)
First, another embodiment 1 will be described. In this embodiment, when the posting information storage server 20 receives posting information, the posting information is stored in the posting information database 22 and transmitted to the posting information index server 30. Thereby, since the search from the posting information database 22 is not required, the processing load on the posting information database 22 can be reduced, and the performance of the posting information database 22 can be prevented from being lowered. Further, the posting information index database 32 can be updated in synchronization with the posting information stored in the posting information database 22 in real time.

具体的には、投稿情報蓄積サーバ20の受付手段23bは、受信手段23aによって受信した投稿情報が蓄積すべき範囲のものであると判定すると、この投稿情報を投稿情報インデックスサーバ30へ送信手段23eから送信させる。これにより、投稿情報データベース22を検索することなく、投稿情報データベース22に蓄積される投稿情報を投稿情報インデックスサーバ30へ送信できる。なお、投稿情報インデックスサーバ30への投稿情報の送信処理は、例えば、図8に示すステップS12の処理の前に行う。   Specifically, when the receiving unit 23b of the posted information storage server 20 determines that the posted information received by the receiving unit 23a is within the range to be stored, the posted information is transmitted to the posted information index server 30 by the transmitting unit 23e. To send from. Thereby, the posted information stored in the posted information database 22 can be transmitted to the posted information index server 30 without searching the posted information database 22. The post information transmission process to the post information index server 30 is performed, for example, before the process of step S12 shown in FIG.

投稿情報インデックスサーバ30の受付手段33cは、投稿情報蓄積サーバ20から送信される投稿情報を受け付け、収集手段33dによって素材IDの集計処理を行う。この場合の処理を、図10を用いて説明する。図10は、投稿情報インデックスサーバ30の制御部33が実行する他の処理手順を示すフローチャートである。なお、図10に示すステップS23〜26の処理は図9に示すS23〜S26の処理と同様であり、ここでは説明を省略する。   The accepting means 33c of the posted information index server 30 accepts the posted information transmitted from the posted information storage server 20, and the collecting means 33d performs a material ID counting process. Processing in this case will be described with reference to FIG. FIG. 10 is a flowchart showing another processing procedure executed by the control unit 33 of the posting information index server 30. Note that the processing of steps S23 to S26 shown in FIG. 10 is the same as the processing of S23 to S26 shown in FIG.

投稿情報インデックスサーバ30において、受付手段33cは、投稿情報蓄積サーバ20から送信される投稿情報を受け付けたか否かを判定する(ステップS20’)。この処理において、受付手段33cが投稿情報を受け付けたと判定すると(ステップS20’,Yes)、収集手段33dは、受付手段33cが受け付けた投稿情報からユーザIDと素材IDとを抽出し、これらの情報に関連付けられた投稿件数を投稿情報インデックスデータベース32から読み出し、1だけ加算して投稿件数を更新する(ステップS22’)。そして、記憶処理手段33eは、収集手段33dによって更新された投稿件数によって投稿情報インデックスデータベース32の更新を行う(ステップS23)。   In the posted information index server 30, the receiving unit 33c determines whether or not the posted information transmitted from the posted information storage server 20 has been received (step S20 '). In this process, if the receiving unit 33c determines that the posting information has been received (step S20 ′, Yes), the collecting unit 33d extracts the user ID and the material ID from the posting information received by the receiving unit 33c, and these information The number of posts associated with is read from the post information index database 32, and 1 is added to update the number of posts (step S22 '). Then, the storage processing unit 33e updates the posting information index database 32 with the number of postings updated by the collecting unit 33d (step S23).

例えば、受け付けた投稿情報がユーザID「555」からの投稿情報で、かつ素材IDが「543228」であり、また、図7の(A)に示すように、ユーザID「555」のユーザが使用した素材ID別の投稿件数が投稿情報インデックスデータベース32に蓄積されているとする。この場合、収集手段33dは、ユーザID「555」に関連づけられた素材IDの投稿件数に1を加算して「11」として集計結果を更新する。そして、記憶処理手段33eは、収集手段33dによって更新された集計結果によって投稿情報インデックスデータベース32の更新を行う。   For example, the accepted posting information is posting information from the user ID “555”, the material ID is “543228”, and the user ID “555” is used by the user as shown in FIG. It is assumed that the number of postings for each material ID is accumulated in the posting information index database 32. In this case, the collection unit 33d adds 1 to the number of postings of the material ID associated with the user ID “555” and updates the count result as “11”. Then, the storage processing unit 33e updates the posting information index database 32 with the aggregation result updated by the collecting unit 33d.

なお、受付手段33cが受け付けた投稿情報から抽出したユーザIDと素材IDとに関連付けられた投稿件数がない場合には、収集手段33dは、抽出した素材IDの投稿数を「1」とした新たな集計情報を生成し、記憶処理手段33eによって、投稿情報インデックスデータベース32の更新を行う。   If there is no number of posts associated with the user ID and material ID extracted from the posted information received by the receiving unit 33c, the collecting unit 33d newly sets the number of posted material ID posts to “1”. Total information is generated, and the post information index database 32 is updated by the storage processing means 33e.

また、投稿情報インデックスサーバ30は、投稿文や投稿種別などの情報は必要ないため、例えば、ユーザIDおよび素材IDのみを取得するようにし、これらの情報に基づいて集計処理を行うことが望ましい。これにより、投稿情報蓄積サーバ20は、投稿情報を全て送信する必要が無く、ユーザIDと素材IDだけを送信すればよいため、投稿情報蓄積サーバ20と投稿情報インデックスサーバ30との間の通信負荷が軽減される。   In addition, since the post information index server 30 does not need information such as a post text and a post type, for example, it is desirable to acquire only a user ID and a material ID and perform a tabulation process based on these information. As a result, the posting information storage server 20 does not need to transmit all the posting information, and only needs to transmit the user ID and the material ID. Therefore, the communication load between the posting information storage server 20 and the posting information index server 30 Is reduced.

また、投稿情報インデックスサーバ30は、投稿情報蓄積サーバ20から送信される投稿情報を受け付けた場合に、収集手段33dによって素材IDの集計処理を行うようにしたが、受け付けた投稿情報を図示しない記憶部に蓄積し、アプリケーションサーバ10から情報要求信号を受け付けた場合に、収集手段33dによって素材IDの集計処理を行うようにしてもよい。   In addition, when the posting information index server 30 receives the posting information transmitted from the posting information accumulation server 20, the collection unit 33d performs the process of counting the material ID, but the received posting information is not illustrated. When the information request signal is received from the application server 10 by being stored in the storage unit, the collection unit 33d may perform the material ID aggregation process.

(他の実施形態2)
次に、他の実施形態2について説明する。この実施形態では、投稿情報蓄積サーバ201〜20nにおいて、投稿情報データベース22に蓄積されたデータから検索用データを生成し、この検索用データを投稿情報インデックスサーバ30で取得するようにする。
(Other embodiment 2)
Next, another embodiment 2 will be described. In this embodiment, the post information storage server 20 1 to 20 n, generates search data from stored in posting information database 22 data, so as to obtain the search data by post information index server 30.

以下、他の実施形態2に係る投稿情報蓄積サーバの構成について説明する。図11は、他の実施形態2に係る投稿情報蓄積サーバ20のブロック図である。以下においては、図2に示す投稿情報蓄積サーバ20に対して追加される機能を主として説明する。   Hereinafter, the configuration of the posted information storage server according to another embodiment 2 will be described. FIG. 11 is a block diagram of the posted information storage server 20 according to another embodiment 2. In the following, functions added to the posted information storage server 20 shown in FIG. 2 will be mainly described.

図11に示すように、他の実施形態2に係る投稿情報蓄積サーバ20には、記憶部24が配置され、さらに、取得手段23d'は、図2に示す取得手段23dの機能に加え、検索用データの生成処理などを行う機能を有している。   As shown in FIG. 11, the post information storage server 20 according to another embodiment 2 includes a storage unit 24, and the acquisition unit 23 d ′ is a search function in addition to the function of the acquisition unit 23 d illustrated in FIG. 2. It has a function of performing generation data generation processing.

例えば、各投稿情報蓄積サーバ20の取得手段23d'は、投稿情報データベース22のデータを記憶部24へダンプする処理を実行する。具体的には、取得手段23d’は、投稿情報データベース22に蓄積された全ての投稿情報を丸ごと読み出して、ダンプファイルとして記憶部24へ記憶する。取得手段23d'は、このダンプ処理を定期的(例えば、1日に1回)に行う。   For example, the acquisition unit 23 d ′ of each posting information storage server 20 executes a process of dumping data in the posting information database 22 to the storage unit 24. Specifically, the acquisition unit 23 d ′ reads all the posted information accumulated in the posted information database 22 and stores it in the storage unit 24 as a dump file. The acquisition unit 23d ′ performs this dump process periodically (for example, once a day).

このように記憶部24に記憶したダンプファイルには、オリジナル(マスター)とレプリカ(複製)とが混在している。そのため、取得手段23d'は、記憶部24に記憶したダンプファイルからオリジナルのみを抽出し、検索用サブデータとして記憶部24に記憶する。   In this way, the dump file stored in the storage unit 24 includes both an original (master) and a replica (replica). Therefore, the acquisition unit 23d ′ extracts only the original from the dump file stored in the storage unit 24 and stores it in the storage unit 24 as sub data for search.

また、投稿情報のオリジナルは、複数の投稿情報蓄積サーバ201〜20nの投稿情報データベース22に分散されて記憶されているため、予め特定された一つの投稿情報蓄積サーバ20(以下、「特定の投稿情報蓄積サーバ20」と記載する)の取得手段23d'は、他の全ての投稿情報蓄積サーバ20から検索用サブデータを収集する。そして、特定の投稿情報蓄積サーバ20の取得手段23d'は、生成した検索用サブデータと収集した検索用サブデータとをマージ(結合)して、検索用データを生成する。 Further, since the original post information is distributed and stored in the post information database 22 of the plurality of post information storage servers 20 1 to 20 n , one post information storage server 20 (hereinafter referred to as “specific”) is specified in advance. Acquisition means 23d 'collects search sub-data from all other post information storage servers 20. Then, the acquisition unit 23d ′ of the specific posting information storage server 20 merges the generated search subdata and the collected search subdata to generate search data.

具体的には、特定の投稿情報蓄積サーバ20の取得手段23d'は、送信手段23eから他の全ての投稿情報蓄積サーバ20に対して、検索用サブデータの送信要求を行う。そして、特定の投稿情報蓄積サーバ20の取得手段23d’は、この送信要求に対して他の投稿情報蓄積サーバ20から送信され受付手段23bで受け付けた検索用サブデータを記憶部24に記憶する。このようにすることで、特定の投稿情報蓄積サーバ20の記憶部24に投稿情報蓄積サーバ201〜20nの検索用サブデータが記憶される。そして、特定の投稿情報蓄積サーバ20の取得手段23d’は、記憶部24に記憶した投稿情報蓄積サーバ201〜20nの検索用サブデータをマージ(結合)して、検索用データを生成する。取得手段23d'は、このように生成した検索用データを投稿情報インデックスサーバ30へ送信する。 Specifically, the acquisition unit 23d ′ of the specific post information storage server 20 sends a search sub-data transmission request to all other post information storage servers 20 from the transmission unit 23e. Then, the acquisition unit 23d ′ of the specific post information storage server 20 stores, in the storage unit 24, the search sub-data transmitted from the other post information storage server 20 and received by the reception unit 23b in response to this transmission request. By doing in this way, the search sub-data of the posting information storage servers 20 1 to 20 n is stored in the storage unit 24 of the specific posting information storage server 20. Then, the acquisition unit 23d ′ of the specific post information storage server 20 merges (combines) the search sub data of the post information storage servers 20 1 to 20 n stored in the storage unit 24 to generate search data. . The acquisition unit 23 d ′ transmits the search data generated in this way to the posting information index server 30.

また、投稿情報蓄積サーバ20の取得手段23d'は、ダンプ処理よりも短い時間間隔で検索用サブデータの差分検出処理を行う。具体的には、各投稿情報蓄積サーバ20の取得手段23d’は、定期的(例えば、10分毎)に、投稿情報データベース22に新たに追加された投稿情報を検索キーによって読み出し、読み出した投稿情報のうちオリジナルのみを抽出し、差分データとして記憶部24に記憶する。そして、検索用サブデータの場合と同様に、特定の投稿情報蓄積サーバ20の取得手段23d'は、他の全ての投稿情報蓄積サーバ20から差分データを収集し、これらの差分データと生成した差分データとをマージ(結合)して、検索用差分データを生成する。取得手段23d'は、このように生成した検索用差分データを投稿情報インデックスサーバ30へ送信する。   Further, the acquisition unit 23d ′ of the posted information storage server 20 performs the search sub-data difference detection process at a time interval shorter than the dump process. Specifically, the acquisition unit 23d ′ of each posting information storage server 20 reads the posting information newly added to the posting information database 22 periodically (for example, every 10 minutes) using the search key and reads the posting. Only the original is extracted from the information and stored in the storage unit 24 as difference data. Then, as in the case of the search sub-data, the acquisition unit 23d ′ of the specific post information storage server 20 collects the difference data from all the other post information storage servers 20, and generates the difference data and the generated difference. The difference data for search is generated by merging the data. The acquisition unit 23 d ′ transmits the search difference data generated in this way to the posting information index server 30.

投稿情報インデックスサーバ30は、特定の投稿情報蓄積サーバ20から検索用データや検索用差分データを取得し、これらのデータから投稿情報の素材IDを抽出する。具体的には、投稿情報インデックスサーバ30の収集手段33dは、図示しない内部の記憶部に検索用データや検索用差分データを記憶しておき、アプリケーションサーバ10から情報要求信号を受け付けた場合に、素材IDの集計処理を行う。なお、収集手段33dは、検索用差分データを検索用データにマージ(結合)して内部の記憶部に記憶した検索用データを更新する。また、収集手段33dは、新たに検索用データを収集した場合、内部の記憶部に記憶した古い検索用データは消去する。   The posting information index server 30 acquires search data and search difference data from the specific posting information storage server 20, and extracts the material ID of the posting information from these data. Specifically, the collection unit 33d of the posting information index server 30 stores search data and search difference data in an internal storage unit (not shown), and when an information request signal is received from the application server 10, The material ID is aggregated. Note that the collection unit 33d merges (combines) the search difference data with the search data and updates the search data stored in the internal storage unit. Further, when newly collecting search data, the collecting unit 33d deletes old search data stored in the internal storage unit.

ここでは、収集手段33dは、アプリケーションサーバ10から情報要求信号を受け付けた場合に、素材IDの集計処理を行うようにしたが、検索用データや検索用差分データを受け付けた場合に、受け付けたデータに基づいて収集手段33dによって素材IDの集計処理を行うようにしてもよい。   Here, the collection unit 33d performs the material ID aggregation processing when the information request signal is received from the application server 10, but the received data when the search data or the search difference data is received. On the basis of the above, the material ID may be aggregated by the collecting means 33d.

このように、投稿情報蓄積サーバ20のそれぞれにバッチ処理を行う機能を持たせることにより、新たな投稿情報が発生する毎に処理を行う必要が無いため、リアルタイムで同期する必要がない場合に有効である。   In this way, each posting information storage server 20 is provided with a function for performing batch processing, so that it is not necessary to perform processing every time new posting information is generated, which is effective when there is no need to synchronize in real time. It is.

なお、上述においては、特定の投稿情報蓄積サーバ20から検索用データや検索用差分データを送信するようにしたが、投稿情報インデックスサーバ30からの検索要求信号に応じて特定の投稿情報蓄積サーバ20が検索用データや検索用差分データから検索結果情報を抽出して投稿情報インデックスサーバ30へ送信するようにしてもよい。この場合、受付手段23bは、投稿情報インデックスサーバ30からの検索要求信号が受信手段23aによって受信された場合、検索要求信号に含まれる検索内容の情報を取得手段23d’へ出力する。取得手段23d’は、受付手段23bから出力された検索内容の情報が投稿情報インデックスサーバ30からの要求である場合、投稿情報データベース22ではなく記憶部24に記憶した検索用データや検索用差分データから検索内容に応じた情報(検索結果情報)を取得する。そして。送信手段23eは、取得手段23dによって取得された検索結果情報を投稿情報インデックスサーバ30へ送信する。なお、特定の投稿情報蓄積サーバ20だけでなく、全ての投稿情報蓄積サーバ201〜20nが検索用データや検索用差分データを生成するようにしてもよい。 In the above description, the search data and the search differential data are transmitted from the specific post information storage server 20, but the specific post information storage server 20 is responded to the search request signal from the post information index server 30. However, the search result information may be extracted from the search data or the search difference data and transmitted to the posting information index server 30. In this case, when the search request signal from the posting information index server 30 is received by the receiving unit 23a, the receiving unit 23b outputs the search content information included in the search request signal to the acquiring unit 23d ′. When the information on the search content output from the accepting unit 23b is a request from the posted information index server 30, the acquiring unit 23d 'searches for the search data or the search differential data stored in the storage unit 24 instead of the posted information database 22. Information corresponding to the search content (search result information) is acquired from. And then. The transmission unit 23e transmits the search result information acquired by the acquisition unit 23d to the posting information index server 30. Not only specific post information storage server 20, all of the posts the information storage server 20 1 to 20 n may be generated search data and search for the differential data.

なお、上述の実施形態(他の実施形態1,2を含む)においては、アプリケーションサーバ10が投稿情報インデックスサーバ30へ集計結果などを要求して取得するようにしたが、例えば、端末装置40が投稿情報インデックスサーバ30へ集計結果などを要求して取得するようにしてもよい。   In the above-described embodiment (including the other embodiments 1 and 2), the application server 10 requests and obtains the aggregation result from the posting information index server 30. You may make it request | require and acquire a total result etc. to the contribution information index server 30. FIG.

なお、上述の実施形態(他の実施形態1,2を含む)では、投稿情報インデックスサーバ30が収集する投稿情報の要素として、素材IDを一例に挙げて説明したが、これに限られず、投稿情報データベース22において複数のキーに関連づけられる投稿情報の要素であればどのようなものであってもよい。例えば、投稿された文章に含まれる特定の語句をバリューとして、投稿情報データベース22で管理させる場合、特定の語句を投稿情報インデックスサーバ30が収集する投稿情報の要素とすることができる。   In the above-described embodiment (including other embodiments 1 and 2), the material ID is described as an example of the post information element collected by the post information index server 30. However, the present invention is not limited to this. Any element of posted information associated with a plurality of keys in the information database 22 may be used. For example, when a specific word / phrase included in a posted sentence is managed as a value in the post information database 22, the specific word / phrase can be used as an element of post information collected by the post information index server 30.

以上、本発明の実施の形態のいくつかを図面に基づいて詳細に説明したが、これらは例示であり、発明の開示の欄に記載の態様を始めとして、当業者の知識に基づいて種々の変形、改良を施した他の形態で本発明を実施することが可能である。   As described above, some of the embodiments of the present invention have been described in detail with reference to the drawings. However, these are merely examples, and various embodiments can be made based on the knowledge of those skilled in the art including the aspects described in the section of the disclosure of the invention. The present invention can be implemented in other forms that have been modified or improved.

10 アプリケーションサーバ
20(201〜20n) 投稿情報蓄積サーバ
30 投稿情報インデックスサーバ
40(401〜40n) 端末装置
33a 送信手段
33b 受信手段
33c 受付手段
33d 収集手段
33e 記憶処理手段
10 Application server 20 (20 1 ~20 n) posts the information storage server 30 posts the information index server 40 (40 1 ~40 n) terminals 33a transmitting means 33b receiving means 33c receiving unit 33d collecting means 33e storage processing unit

Claims (7)

キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させるデータベース管理装置であって、
数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける投稿情報受付手段と、
前記投稿情報受付手段によって前記投稿情報が受け付けられる毎に、当該受け付けられた投稿情報の要素をそれぞれ複数の検索キーに関連付けて前記第1データベースに記憶させる第1記憶処理手段と、
前記投稿情報受付手段によって前記投稿情報が受け付けられる毎に、当該受け付けられた投稿情報に含まれる特定種類の情報に基づいて当該特定種類の情報別の数を集計した情報を第2データベースに記憶させる第2記憶処理手段と、
前記第2記憶処理手段によって前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手段と
を備えたことを特徴とするデータベース管理装置。
A database management device that acquires information managed by a key-value type first database and manages the information by a non-key-value type second database,
From an external device using multiple users respectively, the posted information accepting means for accepting post information including information of a particular type to the element,
Each time the posted information is received by the posted information receiving means, a first storage processing means for storing elements of the received posted information in association with a plurality of search keys in the first database,
Each time the posted information is received by the posted information receiving means, the second database stores information obtained by counting the number of the specific type of information based on the specific type of information included in the received posted information. Second storage processing means;
A database management apparatus comprising: a transmission unit configured to transmit information stored in the second database by the second storage processing unit to the external device in response to a request from the external device.
前記投稿情報には、投稿文の情報と画像のID情報とが含まれ、
前記特定種類の情報は、前記画像のID情報である
ことを特徴とする請求項1に記載のデータベース管理装置。
The posted information includes posted text information and image ID information,
The database management apparatus according to claim 1, wherein the specific type of information is ID information of the image .
前記投稿情報受付手段は、
複数の画像の中から前記外部装置のユーザが選択した画像のID情報を前記投稿情報に含まれる画像のID情報として前記外部装置から受け付ける
ことを特徴とする請求項に記載のデータベース管理装置。
The posting information receiving means
From among a plurality of images according to claim 2, characterized in that <br/> accepting the ID information of the image selected by the user of the external device from the external device as the ID information of the image included in the post information Database management device.
前記投稿情報の要素は、
複数の前記第2データベースによって分散管理され、
前記複数の第2データベースは、
前記投稿情報の各要素について、同一の情報を分散して複数記憶する
ことを特徴とする請求項1〜のいずれか1項に記載のデータベース管理装置。
The post information element is:
Distributedly managed by a plurality of the second databases,
The plurality of second databases are:
Wherein each element of the post information, the database management apparatus according to any one of claims 1 to 3, characterized in <br/> be distributed to a plurality store the same information.
キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させる処理をコンピュータに実行させるデータベース管理プログラムであって、
数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付け
前記投稿情報を受け付ける毎に、当該受け付けた投稿情報の要素をそれぞれ複数の検索キーに関連付けて前記第1データベースに記憶し、
前記投稿情報を受け付ける毎に、当該受け付けた投稿情報に含まれる特定種類の情報に基づいて当該特定種類の情報別の数を集計した情報を第2データベースに記憶し、
前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する処理を前記コンピュータに実行させることを特徴とするデータベース管理プログラム。
A database management program for causing a computer to execute processing for acquiring information managed by a key-value type first database and managing the information by a non-key-value type second database,
From an external device using multiple users respectively, receiving post information including information of a particular type to the element,
Each time the post information is received , the received post information elements are stored in the first database in association with a plurality of search keys, respectively .
Each time the post information is received, information obtained by tabulating the number of the specific type of information based on the specific type of information included in the received post information is stored in the second database,
A database management program for causing a computer to execute processing for transmitting information stored in the second database to the external device in response to a request from the external device.
コンピュータを制御し、キーバリュー型の第1データベースによって管理される情報を取得して非キーバリュー型の第2データベースにより管理させるデータベース管理方法であって、
数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける受付手順と、
前記受付手順によって前記投稿情報が受け付けられる毎に、当該受け付けた投稿情報の要素をそれぞれ複数の検索キーに関連付けて前記第1データベースに記憶させる第1記憶処理手順と、
前記受付手順によって前記投稿情報が受け付けられる毎に、当該受け付けた投稿情報に含まれる特定種類の情報に基づいて当該特定種類の情報別の数を集計した情報を第2データベースに記憶させる第2記憶処理手順と、
前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手順とを含むことを特徴とするデータベース管理方法。
A database management method for controlling a computer to acquire information managed by a key-value type first database and managing it by a non-key-value type second database,
From an external device using multiple users respectively, the reception process for receiving post information including information of a particular type to the element,
A first storage processing procedure for storing each element of the received posting information in association with a plurality of search keys in the first database each time the posting information is received by the receiving procedure ;
A second storage that stores information obtained by counting the number of information of a specific type based on the specific type of information included in the received post information in the second database every time the post information is received by the reception procedure. Processing procedure and
A database management method comprising: a transmission procedure for transmitting information stored in the second database to the external device in response to a request from the external device.
キーバリュー型の第1データベースと、非キーバリュー型の第2データベースを有するデータベース管理装置とを備えたデータベース管理システムにおいて、
前記データベース管理装置は、
複数のユーザがそれぞれ用いる外部装置から、特定種類の情報を要素に含む投稿情報を受け付ける投稿情報受付手段と、
前記投稿情報受付手段によって前記投稿情報が受け付けられる毎に、当該受け付けられた投稿情報の要素をそれぞれ複数の検索キーに関連付けて前記第1データベースに記憶させる第1記憶処理手段と、
前記投稿情報受付手段によって前記投稿情報が受け付けられる毎に、当該受け付けられた投稿情報に含まれる特定種類の情報に基づいて当該特定種類の情報別の数を集計した情報を第2データベースに記憶させる第2記憶処理手段と、
前記記憶処理手段によって前記第2データベースに記憶された情報を外部装置からの要求に応じて前記外部装置へ送信する送信手段と
を備えたことを特徴とするデータベース管理システム。
In a database management system comprising a first database of key value type and a database management device having a second database of non-key value type,
The database management device includes:
Post information receiving means for receiving post information including specific types of information as elements from external devices used by a plurality of users ,
Each time the posted information is received by the posted information receiving means, a first storage processing means for storing elements of the received posted information in association with a plurality of search keys in the first database,
Each time the posted information is received by the posted information receiving means, the second database stores information obtained by counting the number of the specific type of information based on the specific type of information included in the received posted information. Second storage processing means;
A database management system comprising: a transmission unit configured to transmit information stored in the second database by the storage processing unit to the external device in response to a request from the external device.
JP2011002929A 2011-01-11 2011-01-11 Database management apparatus, database management program, database management method, database management system Active JP5211180B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011002929A JP5211180B2 (en) 2011-01-11 2011-01-11 Database management apparatus, database management program, database management method, database management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011002929A JP5211180B2 (en) 2011-01-11 2011-01-11 Database management apparatus, database management program, database management method, database management system

Publications (2)

Publication Number Publication Date
JP2012146058A JP2012146058A (en) 2012-08-02
JP5211180B2 true JP5211180B2 (en) 2013-06-12

Family

ID=46789572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011002929A Active JP5211180B2 (en) 2011-01-11 2011-01-11 Database management apparatus, database management program, database management method, database management system

Country Status (1)

Country Link
JP (1) JP5211180B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5779906B2 (en) * 2011-02-25 2015-09-16 オムロン株式会社 Inspection system, management server, inspection apparatus, and inspection data management method
KR101429046B1 (en) 2012-11-26 2014-08-11 에스코어 주식회사 Method for searching, inputting, deleting and garbage collecting of data in database having key-value structure
CN104657420B (en) * 2015-01-09 2019-06-04 北京京东尚科信息技术有限公司 Page display method and system
CN107038179B (en) * 2016-08-23 2020-04-10 平安科技(深圳)有限公司 Information item storage method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668032A (en) * 1992-08-19 1994-03-11 Toshiba Corp Data base system

Also Published As

Publication number Publication date
JP2012146058A (en) 2012-08-02

Similar Documents

Publication Publication Date Title
JP5069730B2 (en) Event notification function providing device, event notification function providing method, and event notification function providing program
US10891302B2 (en) Scalable synchronization with cache and index management
JP2004206517A (en) Hot keyword presentation method and hot site presentation method
JP2009020901A (en) Database system, method of database retrieval and recording medium
US20190332972A1 (en) Dynamic query response with metadata
US9058392B1 (en) Client state result de-duping
JP2010061178A (en) Information processor, information retrieval system, information processing method, and program
JP5211180B2 (en) Database management apparatus, database management program, database management method, database management system
JP2006099341A (en) Update history generation device and program
JP6453464B2 (en) Method and apparatus for providing website authentication data to a search engine
JPH11213014A (en) Data base system, data base retrieving method and recording medium
JP2006331070A (en) Community-control node device, community-information retrieval system, community-information retrieval method
JP5405190B2 (en) Content management information collection system and content management information collection method
WO2022057525A1 (en) Method and device for data retrieval, electronic device, and storage medium
CN102541947A (en) Method and equipment for updating authority score of webpage based on friefox event
JP5290041B2 (en) Information search apparatus and information search method
US20080082318A1 (en) Semantic retrieval method and computer product
JP5143917B2 (en) Cache server, cache management method, and cache management program
JP6782219B2 (en) Data utilization support device, data utilization support system, and data utilization support method
JP5193977B2 (en) Event notification function providing system
JP2009070210A (en) Device for creating ranking by category
JP5231368B2 (en) Event notification function providing system
JP6338909B2 (en) Content control system
JP2010072751A (en) Information processor, computer program, and information retrieval system
JP6948299B2 (en) Data registration device and data registration method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121228

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130225

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160301

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5211180

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250