[go: up one dir, main page]

TWI877747B - Method and electronic device for managing data related to service and non-transitory computer-readable recording medium - Google Patents

Method and electronic device for managing data related to service and non-transitory computer-readable recording medium Download PDF

Info

Publication number
TWI877747B
TWI877747B TW112132241A TW112132241A TWI877747B TW I877747 B TWI877747 B TW I877747B TW 112132241 A TW112132241 A TW 112132241A TW 112132241 A TW112132241 A TW 112132241A TW I877747 B TWI877747 B TW I877747B
Authority
TW
Taiwan
Prior art keywords
data
event
type
stored
service
Prior art date
Application number
TW112132241A
Other languages
Chinese (zh)
Other versions
TW202501345A (en
Inventor
趙宏堯
諸豪文
蘇鵬飛
Original Assignee
韓商韓領有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 韓商韓領有限公司 filed Critical 韓商韓領有限公司
Publication of TW202501345A publication Critical patent/TW202501345A/en
Application granted granted Critical
Publication of TWI877747B publication Critical patent/TWI877747B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Fuzzy Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

本發明揭示一種藉由電子裝置管理與服務相關之資料之方法。具體而言,管理與服務相關之資料之方法可包括如下步驟:識別與第1期間單位內在服務上發生之事件對應之第1事件資料;基於第1事件資料,將第1類型之資料儲存至第1表;基於第1表所儲存之第1類型之資料中與第2期間單位對應的第1資料,產生第2類型之資料;及將第2類型之資料儲存於第2表。 The present invention discloses a method for managing service-related data by an electronic device. Specifically, the method for managing service-related data may include the following steps: identifying the first event data corresponding to the event occurring on the service within the first period unit; based on the first event data, storing the first type of data in the first table; generating the second type of data based on the first data corresponding to the second period unit in the first type of data stored in the first table; and storing the second type of data in the second table.

Description

管理與服務相關之資料之方法及電子裝置及非暫時性電腦可讀記錄媒體 Methods and electronic devices for managing service-related data and non-transitory computer-readable recording media

本說明書之實施例係關於一種管理與服務相關之資料之方法及電子裝置。更具體而言,本說明書之實施例係關於一種合併及管理於期間單位內在服務上發生之事件資料之方法及其裝置。 The embodiments of this specification are related to a method and an electronic device for managing data related to a service. More specifically, the embodiments of this specification are related to a method and an electronic device for merging and managing event data occurring on a service within a period unit.

對應於用戶在服務上之動作而發生各種即時資料。特別是隨著網際網路使用之普及,根據用戶於網際網路上之各種服務上之動作而發生各種即時資料正在迅速增加。 Various real-time data is generated in response to the user's actions on the service. Especially with the popularization of Internet use, various real-time data generated based on the user's actions on various services on the Internet are increasing rapidly.

本發明係為了解決上述問題而提出的,旨在提供一種管理與服務相關之資料之方法及電子裝置。更具體而言,本發明旨在提供一種藉由將於複數個期間單位內在服務上發生之事件資料各者合併並分層儲存來管理與服務相關之資料之方法及其裝置。本實施例所欲解決之技術課題並不限定於上述技術課題,可從以下實施例中推斷出其他技術課題。 The present invention is proposed to solve the above-mentioned problems and aims to provide a method and an electronic device for managing service-related data. More specifically, the present invention aims to provide a method and an electronic device for managing service-related data by merging and storing in layers the event data that occurred on the service within a plurality of time units. The technical issues to be solved by this embodiment are not limited to the above-mentioned technical issues, and other technical issues can be inferred from the following embodiments.

作為用以實現上述課題之技術方法,本發明之第1態樣之 管理與服務相關之資料之方法係藉由電子裝置而進行者,其可包括如下步驟:識別與第1期間單位內在服務上發生之事件對應之第1事件資料;基於第1事件資料,將第1類型之資料儲存至第1表;基於第1表所儲存之第1類型之資料中與第2期間單位對應的第1資料,產生第2類型之資料;及將第2類型之資料儲存於第2表。 As a technical method for realizing the above-mentioned subject, the method for managing service-related data of the first aspect of the present invention is performed by an electronic device, which may include the following steps: identifying the first event data corresponding to the event occurring on the service within the first period unit; based on the first event data, storing the first type of data in the first table; generating the second type of data based on the first data corresponding to the second period unit among the first type of data stored in the first table; and storing the second type of data in the second table.

根據一實施例,第1事件資料可包括設定之度量集中包括之至少一個度量之資訊,且設定之度量集可包括第1子度量集及第2子度量集。 According to one embodiment, the first event data may include information of at least one metric included in the set metric set, and the set metric set may include a first sub-metric set and a second sub-metric set.

根據一實施例,於第1事件資料中包括之第1子事件資料對應於第1子度量集中包括之第1度量時,第1類型之資料之值確定為第1子事件資料各者之值累積所得之第1值,及於第1資料中包括之第2子資料對應於第1度量時,第2類型之資料之值確定為第2子資料各者之值累積所得之第2值。 According to one embodiment, when the first sub-event data included in the first event data corresponds to the first metric included in the first sub-metric set, the value of the first type of data is determined to be the first value obtained by accumulating the values of each of the first sub-event data, and when the second sub-data included in the first data corresponds to the first metric, the value of the second type of data is determined to be the second value obtained by accumulating the values of each of the second sub-data.

根據一實施例,於第1事件資料中包括之第1子事件資料對應於第2子度量集中包括之第2度量時,可基於第1子事件資料各者之值及第1子事件資料各者之事件發生時刻,確定第1類型之資料,且於第1資料中包括之第2子資料對應於第2度量時,可基於第2子資料各者之值及第2子資料各者之事件發生時刻,確定第2類型之資料。 According to an embodiment, when the first sub-event data included in the first event data corresponds to the second metric included in the second sub-metric set, the first type of data can be determined based on the value of each of the first sub-event data and the event occurrence time of each of the first sub-event data, and when the second sub-data included in the first data corresponds to the second metric, the second type of data can be determined based on the value of each of the second sub-data and the event occurrence time of each of the second sub-data.

根據一實施例,第2類型之資料可包括與複數個期間單位對應之複數個等級之資料,且複數個期間單位可基於與第2類型之資料各者對應之度量而確定。 According to one embodiment, the data of the second type may include data of a plurality of levels corresponding to a plurality of period units, and the plurality of period units may be determined based on the metrics corresponding to each of the data of the second type.

根據一實施例,複數個期間單位包括第3期間單位及第4期間單位,管理與服務相關之資料之方法進而包括如下步驟:於第3期間單 位為短於第4期間單位之期間單位且為複數個期間單位中與第4期間單位相鄰之期間單位時,於第2表所儲存之第2類型之資料中識別與第3期間單位對應之第1等級的資料;及基於第1等級之資料,產生與第4期間單位對應之第2等級之資料。 According to one embodiment, the plurality of period units include the third period unit and the fourth period unit, and the method for managing service-related data further includes the following steps: when the third period unit is a period unit shorter than the fourth period unit and is a period unit adjacent to the fourth period unit among the plurality of period units, identifying the first-level data corresponding to the third period unit in the second type of data stored in the second table; and generating the second-level data corresponding to the fourth period unit based on the first-level data.

根據一實施例,管理與服務相關之資料之方法可進而包括如下步驟:自終端獲得查詢;於第2表所儲存之第2類型之資料中,識別與查詢對應之第2資料;於第1表所儲存之第1類型之資料中識別與查詢對應之第3資料;基於第2資料及第3資料,產生與查詢對應之響應資料;及將響應資料之資訊傳輸至終端。 According to one embodiment, the method for managing service-related data may further include the following steps: obtaining a query from a terminal; identifying the second data corresponding to the query in the data of the second type stored in the second table; identifying the third data corresponding to the query in the data of the first type stored in the first table; generating response data corresponding to the query based on the second data and the third data; and transmitting information of the response data to the terminal.

根據一實施例,產生響應資料之步驟可包括如下步驟:將對應於第2資料之事件發生時刻與對應於第3資料之事件發生時刻進行比較,於第3資料中識別與第2資料重複之第4資料;於第3資料中過濾第4資料而識別第5資料;及基於第2資料及第5資料,產生響應資料。 According to one embodiment, the step of generating response data may include the following steps: comparing the event occurrence time corresponding to the second data with the event occurrence time corresponding to the third data, identifying the fourth data that is repeated with the second data in the third data; filtering the fourth data in the third data to identify the fifth data; and generating response data based on the second data and the fifth data.

根據一實施例,於第2類型之資料包括與複數個期間單位對應之複數個等級之資料時,識別第2資料之步驟可包括如下步驟:於複數個期間單位中識別與查詢對應之至少一個期間單位;及基於第2表所儲存之第2類型之資料中之至少一個期間單位之資料,識別第2資料。 According to one embodiment, when the data of the second type includes data of multiple levels corresponding to multiple period units, the step of identifying the second data may include the following steps: identifying at least one period unit corresponding to the query among the multiple period units; and identifying the second data based on the data of at least one period unit in the data of the second type stored in the second table.

根據一實施例,產生第2類型之資料之步驟可包括如下步驟:於作為第1類型之資料之第6資料新儲存至第1表時,基於第1資料及第6資料而產生作為第2類型之資料之第7資料。 According to one embodiment, the step of generating data of the second type may include the following steps: when the sixth data as data of the first type is newly stored in the first table, the seventh data as data of the second type is generated based on the first data and the sixth data.

根據一實施例,於自第7資料儲存於第2表之時點起經過設定期間、或第6資料之有效性為假(False)時,可自第1表中刪除第6資料。 According to one embodiment, when a set period of time has passed since the 7th data was stored in the 2nd table, or when the validity of the 6th data is false (False), the 6th data can be deleted from the 1st table.

根據一實施例,於自第2等級之資料儲存於第2表之時點起 經過設定期間時,可自第2表中刪除第1等級之資料。 According to one embodiment, when a set period of time has passed since the data of the second level was stored in the second table, the data of the first level can be deleted from the second table.

根據一實施例,第1事件資料可包括服務之使用者識別資訊或服務之物品識別資訊中之至少一者。 According to one embodiment, the first event data may include at least one of the user identification information of the service or the item identification information of the service.

根據一實施例,第2表所儲存之各資料可包括用以識別對應之事件之識別資訊,且管理與服務相關之資料之方法可包括如下步驟:識別與在服務上發生之第2事件對應之第2事件資料、及與第2事件對應之第2識別資訊;基於第2識別資訊,於第2表所儲存之資料中識別第8資料,該第8資料係識別資訊與第2識別資訊對應者;基於第2事件資料而修正第8資料;及將修正之第8資料儲存至第2表。 According to one embodiment, each data stored in the second table may include identification information for identifying a corresponding event, and a method for managing data related to a service may include the following steps: identifying second event data corresponding to a second event occurring on a service, and second identification information corresponding to the second event; based on the second identification information, identifying eighth data in the data stored in the second table, the eighth data being the identification information corresponding to the second identification information; modifying the eighth data based on the second event data; and storing the modified eighth data in the second table.

根據一實施例,設定期間可對應於與第6資料對應之第3事件之可取消期間。 According to one embodiment, the set period may correspond to the cancelable period of the third event corresponding to the sixth data.

本發明之第2態樣之用以管理與服務相關之資料之電子裝置可包括收發器;一個以上之處理器;及儲存器,其儲存藉由一個以上之處理器而執行之一個以上之命令,一個以上之處理器可藉由執行一個以上之命令,而識別與第1期間單位內在服務上發生之事件對應之第1事件資料,基於第1事件資料,將第1類型之資料儲存至第1表,基於第1表所儲存之第1類型之資料中與第2期間單位對應之第1資料,產生第2類型之資料,且將第2類型之資料儲存至第2表。 The electronic device for managing service-related data of the second aspect of the present invention may include a transceiver; one or more processors; and a memory storing one or more commands executed by one or more processors. The one or more processors may identify the first event data corresponding to the event occurring on the service within the first period unit by executing one or more commands, store the first type of data in the first table based on the first event data, generate the second type of data based on the first data corresponding to the second period unit among the first type of data stored in the first table, and store the second type of data in the second table.

本發明之第3態樣之記錄媒體可為非暫時性電腦可讀記錄媒體,其記錄有用以於電腦中執行電子裝置管理與服務相關之資料之方法之程式。 The recording medium of the third aspect of the present invention may be a non-temporary computer-readable recording medium that records a program for executing a method for electronic device management and service-related data in a computer.

根據本說明書之實施例,電子裝置可藉由將於複數個期間 單位內在服務上發生之事件資料各者合併而分層儲存來有效地管理與服務相關之資料。 According to the embodiments of this specification, the electronic device can effectively manage service-related data by combining event data that occurs on the service within multiple time units and storing them in layers.

發明之效果並不限定於上述提及之效果,本發明所屬技術領域中具有常識者可根據申請專利範圍之記載而明確地理解未提及之其他效果。 The effects of the invention are not limited to the effects mentioned above. People with common sense in the technical field to which the invention belongs can clearly understand other effects not mentioned based on the description of the scope of the patent application.

10:系統 10: System

100:電子裝置 100: Electronic devices

101:收發器 101: Transceiver

102:儲存器 102: Storage

103:處理器 103: Processor

120:終端 120:Terminal

301:第1事件資料 301: Data of the first event

310:資料源 310:Source

311:資料工作流 311: Data workflow

320:第1表 320: Table 1

330:第2表 330: Table 2

401:第1事件資料 401: Event data 1

410:第1表 410: Table 1

421:第1子表 421: 1st subtable

422:第2子表 422: Second subtable

600:第1表 600: Table 1

610:第2表 610: Table 2

800:頁面 800: Page

810:第1區域 810: Area 1

820:第2區域 820: Area 2

830:第5區域 830: Area 5

841:第3區域 841: Area 3

842:第4區域 842: Area 4

900:頁面 900: Page

910:區域 910: Area

S210:步驟 S210: Step

S220:步驟 S220: Step

S230:步驟 S230: Step

S240:步驟 S240: Step

S510:步驟 S510: Step

S520:步驟 S520: Step

S530:步驟 S530: Step

S540:步驟 S540: Steps

S550:步驟 S550: Steps

S710:步驟 S710: Step

S720:步驟 S720: Step

S730:步驟 S730: Step

S740:步驟 S740: Steps

圖1係用以說明各種實施例之可實現電子裝置管理與服務相關之資料之方法之系統的圖。 FIG. 1 is a diagram of a system for illustrating various embodiments of a method for implementing electronic device management and service-related data.

圖2係示出電子裝置管理與服務相關之資料之方法之流程圖。 FIG2 is a flow chart showing a method for managing service-related data of an electronic device.

圖3係用以說明於第1事件資料對應於第1子度量集中包括之第1度量時,將第1類型之資料及第2類型之資料儲存至第1表及第2表之方法的圖。 FIG3 is a diagram for explaining a method of storing data of the first type and data of the second type in the first table and the second table when the first event data corresponds to the first metric included in the first sub-metric set.

圖4係用以說明於第1事件資料對應於第2子度量集中包括之第2度量時,將第1類型之資料及第2類型之資料儲存至第1表及第2表之方法的圖。 FIG. 4 is a diagram for explaining a method of storing data of the first type and data of the second type in the first table and the second table when the first event data corresponds to the second metric included in the second sub-metric set.

圖5係示出傳輸與自終端獲得之查詢對應之響應資料之資訊之方法之流程圖。 FIG5 is a flow chart showing a method for transmitting information of response data corresponding to a query obtained from a terminal.

圖6係用以說明於實行合併操作之過程中,在實行查詢操作時,電子裝置提供與查詢對應之響應資料之資訊之方法的圖。 FIG. 6 is a diagram for explaining a method in which an electronic device provides information of response data corresponding to a query when performing a query operation during a merge operation.

圖7係示出修正儲存於表中之資料之方法之流程圖。 FIG7 is a flow chart showing a method for modifying data stored in a table.

圖8係用以說明一實施例之用以設定需要彙總之事件資料與度量之頁面的圖。 FIG8 is a diagram for illustrating a page for setting event data and metrics to be summarized in one embodiment.

圖9係用以說明實施例之顯示彙總資料之頁面的圖。 FIG. 9 is a diagram for illustrating a page displaying summary data in an embodiment.

圖10係示出一實施例之用以管理與服務相關之資料之電子裝置的方塊圖。 FIG. 10 is a block diagram showing an electronic device for managing service-related data according to an embodiment.

實施例中使用之用語係於考慮本發明中之功能之同時,儘可能選擇了當前廣泛使用之通用用語,但也可能根據本領域技術人員之意圖或先例、新技術之出現等而有所不同。另外,於特定情形時,亦存在申請人任意選定之用語,於此情形時,其含義將於相應之說明部分詳細記載。因此,本發明中使用之用語應基於該用語所具有之含義及本發明之整體內容來定義,而並非簡單地基於用語之名稱來定義。 The terms used in the embodiments are currently widely used general terms selected as much as possible while considering the functions of the invention, but they may also be different according to the intentions of technical personnel in this field or precedents, the emergence of new technologies, etc. In addition, in certain cases, there are also terms arbitrarily selected by the applicant. In this case, their meanings will be detailed in the corresponding description section. Therefore, the terms used in the invention should be defined based on the meaning of the terms and the overall content of the invention, rather than simply based on the names of the terms.

於整篇說明書中提及某個構成要素「包括」另一構成要素時,意味著若無特別相反之記載,則不排除其他構成要素,而是可進而包括其他構成要素。又,說明書中記載之「...部」,「...模組」等用語表示處理至少一種功能或操作之單位,該單位可以藉由硬體或者軟體而實現,也可以藉由硬體與軟體之組合而實現。 When a component is mentioned in the entire manual as "including" another component, it means that other components are not excluded unless otherwise stated, but other components may be further included. In addition, the terms "...part", "...module" and the like stated in the manual indicate a unit that processes at least one function or operation, which can be implemented by hardware or software, or by a combination of hardware and software.

整篇說明書中記載之「a、b及c中之至少一者」之表述可包括「單獨之a」、「單獨之b」、「單獨之c」、「a及b」、「a及c」、「b及c」、或「a、b、c三者」。 The expression "at least one of a, b and c" recorded in the entire manual may include "a alone", "b alone", "c alone", "a and b", "a and c", "b and c", or "a, b, c".

下文提及之「終端」可由電腦或攜帶用終端來實現,該電腦或攜帶用終端可藉由網路而與伺服器或其他終端連接。此處,電腦例如包括裝載有網頁瀏覽器(WEB Browser)之筆記型電腦、桌上型電腦(desktop)、膝上型電腦(laptop)等,攜帶用終端作為確保攜帶性及行動性之無線通訊裝置,例如可包括IMT(International Mobile Telecommunication,國際行動通訊)、CDMA(Code Division Multiple Access,分碼多重存取)、W-CDMA(W-Code Division Multiple Access,寬頻分碼多重存取)、LTE(Long Term Evolution,長期演進)等通訊終端、如智慧型手機、平板電腦等所有類型之手持式(Handheld)無線通訊裝置。 The "terminal" mentioned below can be implemented by a computer or a portable terminal, and the computer or portable terminal can be connected to a server or other terminals via a network. Here, computers include, for example, notebook computers, desktop computers, laptop computers, etc. equipped with web browsers. Portable terminals are wireless communication devices that ensure portability and mobility, such as IMT (International Mobile Telecommunication), CDMA (Code Division Multiple Access), W-CDMA (W-Code Division Multiple Access), LTE (Long Term Evolution), and all types of handheld wireless communication devices such as smartphones and tablet computers.

以下參考附圖,對本發明之實施例進行詳細描述,以使本發明所屬技術領域中具有常識者能夠容易地實施。但,本發明可以多種不同之形態實現,並不限於本文所示之實施例。 The following is a detailed description of the embodiments of the present invention with reference to the attached drawings, so that those with common sense in the technical field to which the present invention belongs can easily implement it. However, the present invention can be implemented in many different forms and is not limited to the embodiments shown in this article.

於對實施例進行說明時,將省略本發明所屬之技術領域內熟知且與本發明無直接關聯之技術內容之說明。其原因在於:藉由省略多餘之說明而清晰地傳達本發明之主旨,以避免混淆本發明之主旨。 When describing the embodiments, the description of the technical contents that are well known in the technical field to which the present invention belongs and are not directly related to the present invention will be omitted. The reason is: by omitting redundant descriptions, the main idea of the present invention can be clearly conveyed to avoid confusion of the main idea of the present invention.

出於相同之原因,於附圖中誇張、省略或概略地表示一部分構成要素。又,各構成要素之尺寸並非完全反映實際尺寸。於各圖中,對相同或對應之構成要素賦予相同之附圖標記。 For the same reason, some components are exaggerated, omitted or roughly represented in the attached drawings. In addition, the size of each component does not fully reflect the actual size. In each figure, the same or corresponding components are given the same figure mark.

藉由參考下文結合附圖而詳細敍述之實施例,本發明之優點及特徵以及實現其等之方法將會變得明確。但是,本發明並不限定於以下公開之實施例,能夠以各種不同之形態來實現,提供該等實施例僅是為了使本發明之公開更完整,並使本發明所屬技術領域之技術人員充分瞭解本發明所屬之技術領域,本發明僅由申請專利範圍所限定。於整個說明書中,相同之參考符號指代相同之構成要素。 By referring to the embodiments described in detail below in conjunction with the attached drawings, the advantages and features of the present invention and the methods for realizing the same will become clear. However, the present invention is not limited to the embodiments disclosed below and can be implemented in various forms. The embodiments are provided only to make the disclosure of the present invention more complete and to enable technicians in the technical field to which the present invention belongs to fully understand the technical field to which the present invention belongs. The present invention is limited only by the scope of the patent application. Throughout the specification, the same reference symbols refer to the same constituent elements.

此時,應理解,處理流程圖之各方塊與流程圖之組合可藉由電腦程式指令而實行。該等電腦程式指令可裝載於通用電腦、特殊用電腦或其他可編程資料處理設備之處理器,因此藉由電腦或其他可編程資料 處理設備之處理器而實行之該等指令會產生實行流程圖之方塊中說明之功能的方法。為了以特定方式實現功能,該等電腦程式指令可儲存於可面向電腦或其他可編程資料處理設備之電腦可用或電腦可讀記憶體,儲存於該電腦可用或電腦可讀記憶體中之指令可產生包含如下指令方法的製造品項,該指令方法實行流程圖之方塊中說明之功能。電腦程式指令亦可裝載於電腦或其他可編程資料處理設備上,因此於電腦或其他可編程資料處理設備上實行一系列之動作步驟而產生藉由電腦執行之流程,從而由電腦或其他可編程資料處理設備實行之指令亦可提供用以執行流程圖之方塊中說明之功能的步驟。 At this point, it should be understood that the blocks of the processing flow chart and the combination of the flow chart can be implemented by computer program instructions. Such computer program instructions can be loaded on a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that such instructions executed by the processor of the computer or other programmable data processing device will produce a method for implementing the functions described in the blocks of the flow chart. In order to implement the functions in a specific manner, such computer program instructions can be stored in a computer-usable or computer-readable memory that can be directed to a computer or other programmable data processing device, and the instructions stored in the computer-usable or computer-readable memory can produce a manufactured item containing the following instruction method, which implements the functions described in the blocks of the flow chart. Computer program instructions may also be loaded onto a computer or other programmable data processing device, thereby executing a series of action steps on the computer or other programmable data processing device to generate a process executed by the computer, and the instructions executed by the computer or other programmable data processing device may also provide steps for executing the functions described in the blocks of the flowchart.

又,各方塊可表示包括用以執行特定之邏輯功能之一個以上之可執行指令的模組、片段或代碼之一部分。另外需注意的是,於若干替代實施例中,亦可不按順序產生方塊中提及之功能。例如,相繼表示之兩個方塊實質上既可同時實行,亦可偶爾根據對應之功能而按照相反之順序實行。 Furthermore, each block may represent a module, a fragment, or a portion of code that includes one or more executable instructions for executing a specific logical function. It should also be noted that in some alternative embodiments, the functions mentioned in the blocks may not be generated in sequence. For example, two blocks represented in succession may actually be executed at the same time, or may occasionally be executed in the opposite order according to the corresponding functions.

以下參考附圖,對本發明之實施例進行詳細描述。 The following is a detailed description of the embodiments of the present invention with reference to the attached drawings.

圖1係用以說明各種實施例之可實現電子裝置管理與服務相關之資料之方法之系統的圖。 FIG. 1 is a diagram of a system for illustrating various embodiments of a method for implementing electronic device management and service-related data.

參照圖1,各種實施例之系統10可藉由各種種類之裝置實現。例如,系統10可包括電子裝置100及終端120。如圖1所示之系統10僅示出了與本實施例相關之構成要素。因此,於本實施例之相關技術領域中具有常識者可理解,除圖1所示之構成要素之外,可進而包括其他通用構成要素。 Referring to FIG. 1 , the system 10 of various embodiments can be implemented by various types of devices. For example, the system 10 may include an electronic device 100 and a terminal 120. The system 10 shown in FIG. 1 only shows the components related to the present embodiment. Therefore, those who have common sense in the relevant technical field of the present embodiment can understand that in addition to the components shown in FIG. 1 , other general components may be further included.

電子裝置100及終端120各者可包括收發器、儲存器及處理 器。又,電子裝置100及終端120各自可指處理至少一個功能或動作之單位,可藉由硬體或軟體、或者硬體與軟體之組合來實現。另一方面,於整個實施例中,電子裝置100及終端120各自被稱為單獨之裝置或伺服器,但其可為邏輯上分開之構造,其中至少一部分可藉由自一個裝置或伺服器中分離之功能來實現。 Each of the electronic device 100 and the terminal 120 may include a transceiver, a memory, and a processor. In addition, each of the electronic device 100 and the terminal 120 may refer to a unit that processes at least one function or action, which may be implemented by hardware or software, or a combination of hardware and software. On the other hand, throughout the embodiment, the electronic device 100 and the terminal 120 are each referred to as a separate device or server, but they may be logically separate structures, at least a portion of which may be implemented by functions separated from one device or server.

根據一實施例,電子裝置100及終端120可包括由網路伺服器實現之多個電腦系統或電腦軟體。例如,電子裝置100及終端120中之至少一部分可指與下位裝置連接而接收作業實行請求,實行該作業實行請求並提供實行結果之電腦系統及電腦軟體,該下位裝置可藉由如內部網路或網際網路之電腦網路而與其他網路伺服器進行通訊。此外,電子裝置100及終端120中之至少一部分可理解為廣義概念,包括可於網路伺服器上操作之一系列應用程式、內部或連接之其他節點上構建之各種資料庫。例如,電子裝置100及終端120中之至少一部分可使用藉由磁碟作業系統(DOS)、視窗作業系統(Windows)、Linux作業系統(Linux)、UNIX作業系統(UNIX)、或麥金塔作業系統(MacOS)等操作系統提供之各種網路伺服器程式來實現。 According to one embodiment, the electronic device 100 and the terminal 120 may include a plurality of computer systems or computer software implemented by a network server. For example, at least a portion of the electronic device 100 and the terminal 120 may refer to a computer system and computer software that is connected to a lower device to receive an operation execution request, execute the operation execution request and provide an execution result. The lower device may communicate with other network servers via a computer network such as an intranet or the Internet. In addition, at least a portion of the electronic device 100 and the terminal 120 may be understood as a broad concept, including a series of applications that can be operated on a network server, and various databases constructed on internal or other connected nodes. For example, at least a portion of the electronic device 100 and the terminal 120 can be implemented using various network server programs provided by operating systems such as DOS, Windows, Linux, UNIX, or Macintosh.

電子裝置100及終端120可藉由網路(未圖示)相互通訊。網路包括區域網(Local Area Network;LAN)、廣域網(Wide Area Network;WAN)、加值網(Value Added Network;VAN)、行動無線電通訊網(mobile radio communication network)、衛星通訊網及其等之相互組合,且該網路係使圖1所示之各網路構成主體可相互順暢地進行通訊之綜合性含義之資料通訊網,可包括有線網際網路、無線網際網路及行動無線通訊網。無線通訊例如可包含無線保真(Wi-Fi)、藍牙、低功耗藍牙 (Bluetooth low energy)、紫蜂(Zigbee)、WFD(Wi-Fi Direct,Wi-Fi直連)、UWB(ultra wideband,超寬頻)、紅外線通訊(IrDA,infrared Data Association)、NFC(Near Field Communication,近場通訊)等,但並不限定於此。 The electronic device 100 and the terminal 120 can communicate with each other via a network (not shown). The network includes a local area network (LAN), a wide area network (WAN), a value-added network (VAN), a mobile radio communication network, a satellite communication network, and combinations thereof, and the network is a comprehensive data communication network that enables the network components shown in FIG. 1 to communicate with each other smoothly, and may include a wired Internet, a wireless Internet, and a mobile wireless communication network. Wireless communication may include, for example, Wi-Fi, Bluetooth, Bluetooth low energy, Zigbee, WFD (Wi-Fi Direct), UWB (ultra wideband), infrared communication (IrDA), NFC (Near Field Communication), etc., but is not limited thereto.

對應於用戶於服務上之動作,可發生各種即時資料。例如,於用戶購買物品時,可發生與用戶之物品購買事件對應之即時資料。於本文中,事件資料可為對應於在服務上發生之事件而儲存於訊息隊列之資料。作為一實施例,事件資料可為與用戶在服務上之動作對應之日誌資料,但並不限定於此。事件資料係訊息隊列所儲存之資料,可與電子裝置100之儲存器中之第1表或第2表所儲存之資料區分。與此相關,訊息隊列可按照產生順序儲存對應於在服務上發生之事件而產生之事件資料。 Various real-time data may be generated in response to the user's actions on the service. For example, when the user purchases an item, real-time data corresponding to the user's item purchase event may be generated. In this article, event data may be data stored in a message queue in response to an event occurring on the service. As an embodiment, event data may be log data corresponding to the user's actions on the service, but is not limited thereto. Event data is data stored in a message queue, which may be distinguished from data stored in the first table or the second table in the memory of the electronic device 100. In this regard, the message queue may store event data generated in response to events occurring on the service in the order in which they are generated.

電子裝置100可將複數個期間單位內在服務上發生之事件資料各者合併分層儲存。電子裝置100可將與第1期間單位對應之第1類型之資料儲存至第1表,將與第2期間單位對應之第2類型之資料儲存至第2表。 The electronic device 100 can combine and store the event data occurring on the service in multiple time units in layers. The electronic device 100 can store the data of the first type corresponding to the first time unit in the first table, and store the data of the second type corresponding to the second time unit in the second table.

作為一實施例,電子裝置100可於訊息隊列所累積之事件資料中,識別與相對較短之期間之第1期間單位內在服務上發生之事件對應的第1事件資料。電子裝置100可基於第1事件資料而將第1類型之資料儲存至第1表。更具體而言,電子裝置100可藉由合併第1事件資料,產生第1類型之資料。此處,第1期間單位可為電子裝置100中設定之期間單位中最短之期間單位。第1期間單位可為10秒,但不限於此。第1類型之資料係表示整合較短之期間單位即第1期間單位內資料之值的資料,可稱為非整合(Non-aggregation)資料。第1類型之資料可儲存於電子裝置100之 儲存器中之第1表。 As an embodiment, the electronic device 100 can identify the first event data corresponding to the event occurring on the service within the first period unit of a relatively short period from among the event data accumulated in the message queue. The electronic device 100 can store the first type of data in the first table based on the first event data. More specifically, the electronic device 100 can generate the first type of data by merging the first event data. Here, the first period unit can be the shortest period unit among the period units set in the electronic device 100. The first period unit can be 10 seconds, but is not limited thereto. The first type of data is data representing the value of the data within the integrated shorter period unit, i.e., the first period unit, and can be referred to as non-aggregation data. Data of the first type may be stored in the first table in the memory of the electronic device 100.

作為其他實施例,電子裝置100可基於第1表所儲存之第1類型之資料中與第2期間單位對應的第1資料,產生第2類型之資料。更具體而言,電子裝置100可藉由合併第1表所儲存之第1類型之資料中與第2期間單位內在服務上發生之事件對應之資料,產生第2類型之資料。此處,第2期間單位可為比第1期間單位更長之期間單位。例如,第2期間單位可為1小時,但不限於此。第2類型之資料可為表示整合第2期間單位內第1類型之資料之值的資料。此處,第2類型之資料係整合第1表所儲存之第1類型之資料中之一部分而產生之資料,可稱為整合資料。電子裝置100可將第2類型之資料儲存至第2表。第2表可為與儲存器中之第1表不同之單獨表。 As another embodiment, the electronic device 100 may generate data of the second type based on the first data corresponding to the second period unit in the data of the first type stored in the first table. More specifically, the electronic device 100 may generate data of the second type by merging data corresponding to events occurring on the service within the second period unit in the data of the first type stored in the first table. Here, the second period unit may be a period unit longer than the first period unit. For example, the second period unit may be 1 hour, but is not limited thereto. The data of the second type may be data representing the value of the data of the first type integrated within the second period unit. Here, the data of the second type is data generated by integrating a part of the data of the first type stored in the first table, and can be called integrated data. The electronic device 100 can store the data of the second type in the second table. The second table can be a separate table different from the first table in the memory.

圖2係示出電子裝置管理與服務相關之資料之方法之流程圖。 FIG2 is a flow chart showing a method for managing service-related data of an electronic device.

參照圖2,可清楚地理解,電子裝置管理與服務相關之資料之各動作可於本發明所屬技術領域之常識者明確理解之範圍內,變更、替換一部分動作,或者動作之間之某些順序可變更。 Referring to Figure 2, it can be clearly understood that each action of electronic device management and service-related data can be changed or replaced within the scope of the common sense in the technical field to which the present invention belongs, or some orders between actions can be changed.

於步驟S210中,電子裝置100可識別與第1期間單位內在服務上發生之事件對應之第1事件資料。 In step S210, the electronic device 100 can identify the first event data corresponding to the event occurring on the service within the first period unit.

於在服務上即時發生事件時,電子裝置100可確定與發生之事件對應之事件資料中是否包括關於設定之度量集中包括之度量之資訊。於事件資料中包括關於設定之度量集中包括之度量之資訊時,電子裝置100可實行識別第1事件資料之動作。電子裝置100可在訊息隊列所儲存之資料中識別與在設定之第1期間單位內在服務上發生之事件對應之第1事 件資料。 When an event occurs in real time on a service, the electronic device 100 can determine whether the event data corresponding to the event that occurs includes information about the metrics included in the set metric set. When the event data includes information about the metrics included in the set metric set, the electronic device 100 can perform an action of identifying the first event data. The electronic device 100 can identify the first event data corresponding to the event that occurs on the service within the set first period unit from the data stored in the message queue.

於步驟S220中,電子裝置100可基於第1事件資料,將第1類型之資料儲存至第1表。 In step S220, the electronic device 100 can store the data of the first type in the first table based on the first event data.

根據一實施例,電子裝置100可整合步驟S210中識別之第1事件資料而產生第1類型之資料,並將產生之第1類型之資料儲存至第1表。第1事件資料可包括設定之度量集中包括之至少一個度量之資訊。設定之度量集可包括第1子度量集及第2子度量集。 According to one embodiment, the electronic device 100 may integrate the first event data identified in step S210 to generate data of the first type, and store the generated data of the first type in the first table. The first event data may include information of at least one metric included in the set metric set. The set metric set may include a first sub-metric set and a second sub-metric set.

作為一實施例,於第1事件資料中包括之第1子事件資料對應於第1子度量集中包括之第1度量時,第1類型之資料之值可確定為第1子事件資料各者之值累積所得之第1值。例如,與用戶之訂單件數(order count)對應之第1類型之資料的值可確定為第1期間內在服務上發生之用戶之訂單件數的總和。 As an example, when the first sub-event data included in the first event data corresponds to the first metric included in the first sub-metric set, the value of the first type of data can be determined as the first value accumulated from the values of each of the first sub-event data. For example, the value of the first type of data corresponding to the number of orders of a user can be determined as the sum of the number of orders of the user that occurred on the service during the first period.

作為其他實施例,於第1事件資料中包括之第1子事件資料對應於第2子度量集中包括之第2度量時,可基於第1子事件資料各者之值及第1子事件資料各者之事件發生時刻而確定第1類型之資料。例如,與用戶之最新訂單日期(order last date)對應之第1類型之資料之值可為第1期間內在服務上發生之用戶之訂單中與事件發生時刻(即訂單日期)為最新之訂單之日期對應之事件資料之值。又,與用戶之最新訂單日期(order last date)對應之第1類型之資料的事件發生時刻可確定為第1期間內在服務上發生之用戶之訂單中事件發生時刻(即訂單日期)為最新之訂單之日期。 As another embodiment, when the first sub-event data included in the first event data corresponds to the second metric included in the second sub-metric set, the first type of data can be determined based on the value of each of the first sub-event data and the event occurrence time of each of the first sub-event data. For example, the value of the first type of data corresponding to the user's latest order date (order last date) can be the value of the event data corresponding to the date of the order with the latest event occurrence time (i.e., order date) among the user's orders that occurred on the service during the first period. In addition, the event occurrence time of the first type of data corresponding to the user's latest order date (order last date) can be determined as the date of the order with the latest event occurrence time (i.e., order date) among the user's orders that occurred on the service during the first period.

於步驟S230中,電子裝置100可基於第1表所儲存之第1類型之資料中與第2期間單位對應的第1資料,產生第2類型之資料。 In step S230, the electronic device 100 can generate data of the second type based on the first data corresponding to the second period unit in the data of the first type stored in the first table.

於步驟S240中,電子裝置100可將第2類型之資料儲存於第 2表。 In step S240, the electronic device 100 may store the second type of data in the second table.

此處,第1資料可為第1表所儲存之第1類型之資料中與第2期間單位內發生之事件對應之資料。根據一實施例,電子裝置100可藉由整合第1資料而產生第2類型之資料。又,產生之第2類型之資料可儲存於與第1表不同之第2表。 Here, the first data may be data corresponding to an event occurring in the second period unit among the data of the first type stored in the first table. According to one embodiment, the electronic device 100 may generate data of the second type by integrating the first data. Furthermore, the generated data of the second type may be stored in a second table different from the first table.

作為一實施例,於第1資料中包括之第2子資料對應於第1度量時,第2類型之資料之值可確定為第2子資料各者之值累積所得之第2值。例如,與用戶之訂單件數(order count)對應之第2類型之資料的值可確定為第2期間單位中包括之第1類型之資料各者之訂單件數的總和。 As an example, when the second sub-data included in the first data corresponds to the first metric, the value of the second type of data can be determined as the second value obtained by accumulating the values of each of the second sub-data. For example, the value of the second type of data corresponding to the number of orders of a user can be determined as the sum of the number of orders of each of the first type of data included in the second period unit.

作為其他實施例,於第1資料中包括之第2子資料對應於第2度量時,可基於第2子資料各者之值及第2子資料各者之事件發生時刻而確定第2類型之資料。例如,與用戶之最新訂單日期(order last date)對應之第2類型之資料之值可為第2期間內在服務上發生之用戶之訂單中與事件發生時刻(即訂單日期)為最新之訂單之日期對應之事件資料之值。又,與用戶之最新訂單日期(order last date)對應之第2類型之資料的事件發生時刻可確定為第2期間內在服務上發生之用戶之訂單中事件發生時刻(即訂單日期)為最新之訂單之日期。 As another embodiment, when the second sub-data included in the first data corresponds to the second metric, the second type of data can be determined based on the value of each of the second sub-data and the time of occurrence of each of the second sub-data. For example, the value of the second type of data corresponding to the user's latest order date (order last date) can be the value of the event data corresponding to the date of the order with the latest event time (i.e., order date) among the user's orders that occurred on the service during the second period. In addition, the time of occurrence of the event of the second type of data corresponding to the user's latest order date (order last date) can be determined as the date of the order with the latest event time (i.e., order date) among the user's orders that occurred on the service during the second period.

即,基於與第1期間單位內發生之事件對應之第1事件資料而產生之第1類型之資料可儲存於第1表,該第1期間單位係相對較短之期間單位。相反,基於第2期間單位對應之第1資料而產生之第2類型之資料可儲存於第2表,該第2期間單位係比第1表所儲存之第1類型之資料中之第1期間單位更長之期間單位。即,訊息隊列所儲存之事件資料可按照複數個期間單位分層合併之方式儲存於第1表及第2表中之至少一者,而非單 獨儲存於電子裝置100之儲存器中。 That is, the data of the first type generated based on the first event data corresponding to the event occurring in the first period unit can be stored in the first table, and the first period unit is a relatively short period unit. On the contrary, the data of the second type generated based on the first data corresponding to the second period unit can be stored in the second table, and the second period unit is a longer period unit than the first period unit in the data of the first type stored in the first table. That is, the event data stored in the message queue can be stored in at least one of the first table and the second table in a hierarchical manner according to a plurality of period units, rather than being stored separately in the memory of the electronic device 100.

又,與除第2期間單位以外之複數個期間單位對應之複數個等級之資料可儲存於第2表。例如,複數個期間單位可包括第3期間單位及第4期間單位,第3期間單位可為比第4期間單位更短之期間單位,且為於複數個期間單位中與第4期間單位相鄰之期間單位。此時,電子裝置100可於第2表所儲存之第2類型之資料中識別與第3期間單位對應之第1等級之資料,基於第1等級之資料而產生與第4期間單位對應之第2等級之資料。作為一實施例,複數個期間單位可包括1日、一週、一個月、季度及半年,第2期間單位可為1日。此時,與一週對應之上位等級之資料可基於與1日對應之下位等級之資料而產生。又,與一個月對應之上位等級之資料可基於與一週對應之下位等級之資料及與1日對應之下位等級之資料而產生。與季度對應之上位等級之資料可基於與一個月對應之下位等級之資料而產生。與半年對應之上位等級之資料可基於與季度對應之下位等級之資料而產生。 Furthermore, data of a plurality of levels corresponding to a plurality of period units other than the second period unit may be stored in the second table. For example, the plurality of period units may include a third period unit and a fourth period unit, and the third period unit may be a period unit shorter than the fourth period unit and adjacent to the fourth period unit in the plurality of period units. At this time, the electronic device 100 may identify data of the first level corresponding to the third period unit from the data of the second type stored in the second table, and generate data of the second level corresponding to the fourth period unit based on the data of the first level. As an embodiment, the plurality of period units may include 1 day, 1 week, 1 month, 1 quarter, and 6 months, and the second period unit may be 1 day. At this time, the upper level data corresponding to a week can be generated based on the lower level data corresponding to the day. In addition, the upper level data corresponding to a month can be generated based on the lower level data corresponding to a week and the lower level data corresponding to the day. The upper level data corresponding to a quarter can be generated based on the lower level data corresponding to a month. The upper level data corresponding to half a year can be generated based on the lower level data corresponding to a quarter.

第1期間單位,第2期間單位及複數個期間單位可基於與第1事件資料、第1類型之資料、第2類型之資料各者對應之度量而確定。作為一實施例,度量中各用戶之訂單件數可為一天中發生之頻度較少之度量。即,與各用戶之訂單件數對應之第1期間單位、第2期間單位及複數個期間單位可設定得相對較長。作為其他示例,度量中各用戶之登入次數可為一天中發生之頻度較頻繁之度量。即,與各用戶之登入次數對應之第1期間單位、第2期間單位及複數個期間單位可設定得相對較短。 The first period unit, the second period unit, and a plurality of period units can be determined based on the metrics corresponding to the first event data, the first type of data, and the second type of data. As an example, the number of orders of each user in the metric can be a metric that occurs less frequently in a day. That is, the first period unit, the second period unit, and a plurality of period units corresponding to the number of orders of each user can be set to be relatively long. As another example, the number of logins of each user in the metric can be a metric that occurs more frequently in a day. That is, the first period unit, the second period unit, and a plurality of period units corresponding to the number of logins of each user can be set to be relatively short.

於自終端120獲得查詢時,電子裝置100可將與查詢對應之響應資料之資訊傳輸至終端120。作為一實施例,電子裝置100可識別第2 表所儲存之第2類型之資料中與查詢對應之第2資料,於第1表所儲存之第1類型之資料中識別與查詢對應之第3資料,基於第2資料及第3資料而產生與查詢對應之響應資料,並將響應資料之資訊傳輸至終端120。具體之實施例將參考圖5進行描述。 When a query is obtained from the terminal 120, the electronic device 100 may transmit information of response data corresponding to the query to the terminal 120. As an embodiment, the electronic device 100 may identify the second data corresponding to the query in the data of the second type stored in the second table, identify the third data corresponding to the query in the data of the first type stored in the first table, generate response data corresponding to the query based on the second data and the third data, and transmit information of the response data to the terminal 120. The specific embodiment will be described with reference to FIG. 5.

圖3係用以說明於第1事件資料對應於第1子度量集中包括之第1度量時,將第1類型之資料及第2類型之資料儲存至第1表及第2表之方法的圖。圖3之一實施例之事件資料之度量係關於「最新訂單日期(Order-last-date)」,可包括於第2子度量集。 FIG. 3 is a diagram for explaining a method of storing data of the first type and data of the second type in the first table and the second table when the first event data corresponds to the first metric included in the first sub-metric set. The metric of the event data of one embodiment of FIG. 3 is related to "Order-last-date", which can be included in the second sub-metric set.

資料源310可對應於與在服務上發生之事件對應之事件資料。於在在服務上新發生第1事件時,電子裝置100可確定是否包括與第1事件對應之第1事件資料301中設定之度量集中包括之度量之資訊。於包括第1事件資料301中所設定之度量集中包括之第1度量之資訊時,電子裝置100可依次實行將第1類型之資料及第2類型之資料儲存至第1表及第2表之動作。具體而言,電子裝置100可藉由資料工作流311而將包括第1事件資料301之事件資料儲存至儲存器102。 The data source 310 may correspond to event data corresponding to an event occurring on the service. When the first event occurs on the service, the electronic device 100 may determine whether to include information of the metric included in the metric set set in the first event data 301 corresponding to the first event. When including information of the first metric included in the metric set set in the first event data 301, the electronic device 100 may sequentially store the data of the first type and the data of the second type in the first table and the second table. Specifically, the electronic device 100 may store the event data including the first event data 301 in the storage 102 through the data workflow 311.

作為一實施例,第1類型之資料可儲存於儲存器102中之第1表320。於第1期間單位為10秒時,將事件發生時刻自2023年4月3日13時01分10秒至2023年4月3日13時01分20秒為止之第1事件資料合併而產生之第1類型之資料可儲存於第1表320。例如,與自2023年4月3日13時01分10秒至2023年4月3日13時01分20秒之間發生之第1事件對應之第1事件資料301在2023年4月3日13時01分11秒處理後,可作為第1類型之資料儲存於第1表320。又,可將過去發生之事件資料合併為第1期間單位,按照事件發生時刻之順序而儲存於第1表320。 As an example, data of the first type may be stored in the first table 320 in the memory 102. When the first period unit is 10 seconds, the first event data with event occurrence times from 13:01:10 on April 3, 2023 to 13:01:20 on April 3, 2023 may be combined to generate data of the first type and may be stored in the first table 320. For example, the first event data 301 corresponding to the first event occurring between 13:01:10 on April 3, 2023 and 13:01:20 on April 3, 2023 may be stored in the first table 320 as data of the first type after being processed at 13:01:11 on April 3, 2023. In addition, the event data that occurred in the past can be combined into the first period unit and stored in the first table 320 in the order of the time when the event occurred.

例如,基於與2023年3月2日16時31分20秒發生之物品訂單事件對應之第2事件資料的第1類型之資料之值可為「真(True)」,並可儲存於第1表320。又,基於與2023年3月1日16時31分19秒發生之物品訂單事件對應之第4事件資料的第1類型之資料之值可為「真(True)」,並可儲存於第1表320。然而,於2023年3月1日16時31分19秒發生之物品訂單被取消,物品訂單取消事件可能發生於2023年3月1日16時35分20秒。基於與2023年3月1日16時35分20秒發生之物品訂單取消事件對應之第3事件資料的第1類型之資料之值可為「假(False)」,並可儲存於第1表320。與識別如物品訂單事件及物品訂單取消事件等彼此相關之事件相關,資料源310中包括之事件資料與第1表320或第2表330所儲存之資料可進而包括用以識別對應之事件之識別資訊。參照圖3,與2023年3月1日16時35分20秒發生之物品訂單取消事件對應之識別資訊可對應於與2023年3月1日16時31分19秒發生之物品訂單事件對應之識別資訊。 For example, the value of the data of the first type based on the second event data corresponding to the item order event occurring at 16:31:20 on March 2, 2023 may be "True" and may be stored in the first table 320. Also, the value of the data of the first type based on the fourth event data corresponding to the item order event occurring at 16:31:19 on March 1, 2023 may be "True" and may be stored in the first table 320. However, the item order occurring at 16:31:19 on March 1, 2023 is cancelled, and the item order cancellation event may occur at 16:35:20 on March 1, 2023. The value of the data of the first type based on the third event data corresponding to the item order cancellation event occurring at 16:35:20 on March 1, 2023 may be "False" and may be stored in the first table 320. In connection with identifying mutually related events such as item order events and item order cancellation events, the event data included in the data source 310 and the data stored in the first table 320 or the second table 330 may further include identification information for identifying the corresponding events. Referring to FIG. 3, the identification information corresponding to the item order cancellation event occurring at 16:35:20 on March 1, 2023 may correspond to the identification information corresponding to the item order event occurring at 16:31:19 on March 1, 2023.

作為一實施例,第2類型之資料可儲存於儲存器102中之第2表330。i)對應於將第1類型之資料新儲存或更新至第1表320,第2類型之資料亦可新儲存或更新至第2表330。或者,ii)自將第1類型之資料新儲存或更新至第1表320之時點起至經過設定期間(例如,1日)之時點,可將第2類型之資料新儲存或更新至第2表330。作為一實施例,第2表330所儲存之第2類型之資料之事件發生時刻與處理時刻可相差設定期間即1日。設定期間並不限定於1日。作為又一實施例,設定期間可對應於與第1類型之資料對應之可取消事件之期間。若設定期間設定為與第1類型之資料對應之可取消事件之期間,則自新儲存或更新第1類型之資料之時點起至經過設定期間之時點後,與第1類型之資料對應之事件無法取消。即,於設定期 間設定為與第1類型之資料對應之可取消事件之期間時,可最小化第1表320所儲存之資料之修正操作。 As an embodiment, the data of the second type may be stored in the second table 330 in the memory 102. i) Corresponding to the new storage or update of the data of the first type in the first table 320, the data of the second type may also be newly stored or updated in the second table 330. Alternatively, ii) from the time when the data of the first type is newly stored or updated in the first table 320 to the time when a set period (e.g., 1 day) has passed, the data of the second type may be newly stored or updated in the second table 330. As an embodiment, the event occurrence time and the processing time of the data of the second type stored in the second table 330 may differ by a set period, i.e., 1 day. The set period is not limited to 1 day. As another embodiment, the set period may correspond to the period of the cancelable event corresponding to the data of the first type. If the set period is set to the period of the cancelable event corresponding to the data of the first type, the event corresponding to the data of the first type cannot be canceled from the time when the data of the first type is newly stored or updated to the time when the set period has passed. That is, when the set period is set to the period of the cancelable event corresponding to the data of the first type, the modification operation of the data stored in the first table 320 can be minimized.

於第2期間單位為一個月時,將與2023年4月內發生之事件對應之第1類型之資料合併而產生之資料可儲存為第2類型之資料。又,將與2023年3月內發生之事件對應之第1類型之資料合併而產生之資料亦可儲存為第2類型之資料。例如,2023年3月內發生之事件可包括2023年3月2日16時31分20秒發生之物品訂單事件、2023年3月1日16時31分19秒發生之物品訂單事件、2023年3月1日16時35分20秒發生之物品訂單取消事件。與2023年3月對應之第2類型之資料可基於與2023年3月內發生之事件對應之第1類型之資料各者之值及事件發生時刻而確定。第2類型之資料之事件發生時刻可確定為與2023年3月內發生之事件對應之第1類型之資料之發生時刻中最新之2023年3月1日16時31分19秒。又,第2類型之資料之值可為「真(True)」。即,與2023年3月1日16時31分19秒發生之物品訂單事件對應之第1類型之資料及與2023年3月1日16時35分20秒發生之物品訂單取消事件對應之第1類型之資料可彼此合併而進行管理。因此,可提高資料管理之效率。又,為了提高資料管理之效率,可確定將第1表320所儲存之第1類型之資料被合併而儲存於第2表330之設定期間對應於度量。例如,為了最小第2表330所儲存之第2類型之資料之化修正操作,設定期間可基於如物品訂單事件及物品訂單取消等彼此相關之(correlated)事件的事件發生時刻之間之差而確定。例如,設定期間可設定為大於如物品訂單事件及物品訂單取消等彼此相關之(correlated)事件的事件發生時刻之間的平均間隔。 When the second period unit is one month, the data generated by merging the data of type 1 corresponding to events occurring in April 2023 can be stored as data of type 2. In addition, the data generated by merging the data of type 1 corresponding to events occurring in March 2023 can also be stored as data of type 2. For example, events occurring in March 2023 may include an item order event occurring at 16:31:20 on March 2, 2023, an item order event occurring at 16:31:19 on March 1, 2023, and an item order cancellation event occurring at 16:35:20 on March 1, 2023. The data of the second type corresponding to March 2023 can be determined based on the values of each of the data of the first type corresponding to the events occurring in March 2023 and the time of occurrence of the events. The time of occurrence of the events of the data of the second type can be determined as the latest time of occurrence of the data of the first type corresponding to the events occurring in March 2023, which is 16:31:19 on March 1, 2023. In addition, the value of the data of the second type can be "True". That is, the data of the first type corresponding to the item order event occurring at 16:31:19 on March 1, 2023 and the data of the first type corresponding to the item order cancellation event occurring at 16:35:20 on March 1, 2023 can be combined and managed. Therefore, the efficiency of data management can be improved. Furthermore, in order to improve the efficiency of data management, the set time for merging the data of the first type stored in the first table 320 and storing them in the second table 330 can be determined to correspond to the metric. For example, in order to minimize the modification operation of the data of the second type stored in the second table 330, the set time can be determined based on the difference between the time of occurrence of related events such as item order events and item order cancellations. For example, the set time can be set to be greater than the average interval between the time of occurrence of related events such as item order events and item order cancellations.

又,將與在服務上發生之事件對應之資料同時儲存至第1 表320及第2表330可能在資料儲存空間之第1方面效率低下。相反,將與在服務上發生之事件對應之資料同時儲存至第1表320及第2表330可能在檢測資料之準確度之第2方面有效率。綜合考慮第1方面及第2方面,電子裝置100可將與在服務上發生之事件對應之資料在設定期間內同時儲存至第1表320及第2表330。與此同時,電子裝置100可於經過設定期間時,刪除與事件對應之第1表320所儲存之第1類型之資料。因此,可同時優化關於資料儲存空間之第1方面及關於檢測資料之準確度之第2方面。 Furthermore, storing the data corresponding to the events occurring on the service in the first table 320 and the second table 330 at the same time may be inefficient in terms of the first aspect of data storage space. On the contrary, storing the data corresponding to the events occurring on the service in the first table 320 and the second table 330 at the same time may be efficient in terms of the second aspect of detecting the accuracy of the data. Taking the first aspect and the second aspect into consideration, the electronic device 100 may store the data corresponding to the events occurring on the service in the first table 320 and the second table 330 at the same time during a set period. At the same time, the electronic device 100 may delete the data of the first type stored in the first table 320 corresponding to the event when the set period has passed. Therefore, the first aspect regarding data storage space and the second aspect regarding the accuracy of the test data can be optimized at the same time.

作為一實施例,於整合第1表320所儲存之第1類型之資料後,自儲存為第2類型之資料之時點起經過設定期間(例如,2個月)或第1類型之資料之有效性為假(False)時,可將第1類型之資料自第1表320中刪除。與此相關,與2023年2月2日18時31分20秒發生之物品訂單事件對應之第1類型之資料可於自儲存為第2類型之資料之時點起經過設定期間即2個月的2023年4月2日18時31分20秒刪除。因此,圖3之第1表320中可能未儲存2023年2月2日18時31分20秒發生之物品訂單事件之資料。 As an example, after integrating the data of type 1 stored in table 320, the data of type 1 may be deleted from table 320 when a set period (e.g., 2 months) has passed since the data was stored as type 2 or the validity of the data of type 1 is false. In this regard, the data of type 1 corresponding to the item order event occurring at 18:31:20 on February 2, 2023 may be deleted at 18:31:20 on April 2, 2023, which is 2 months after the set period has passed since the data was stored as type 2. Therefore, the data of the item order event occurring at 18:31:20 on February 2, 2023 may not be stored in table 320 of FIG. 3.

圖4係用以說明於第1事件資料對應於第2子度量集中包括之第2度量時,將第1類型之資料及第2類型之資料儲存至第1表及第2表之方法的圖。 FIG. 4 is a diagram for explaining a method of storing data of the first type and data of the second type in the first table and the second table when the first event data corresponds to the second metric included in the second sub-metric set.

一實施例之事件資料之度量為「訂單件數(Order-count)」,可包括於第1子度量集中。於將圖4之第1類型之資料及第2類型之資料儲存至第1表及第2表之方法中,省略了與圖3中說明之部分重複之詳細說明。 The metric of event data in one embodiment is "Order-count", which can be included in the first sub-metric set. In the method of storing the data of the first type and the data of the second type in FIG. 4 in the first table and the second table, the detailed description that is partially repeated with that in FIG. 3 is omitted.

作為一實施例,第1類型之資料可儲存於儲存器102中之第1表410。於第1期間單位為10秒時,可將事件發生時刻自2023年5月3日13 時01分10秒至2023年5月3日13時01分20秒為止之第1事件資料合併而產生之第1類型之資料儲存於第1表410。例如,與自2023年5月3日13時01分10秒至2023年5月3日13時01分20秒之間發生之第1事件對應之第1事件資料401在2023年5月3日13時01分11秒處理後,可作為第1類型之資料儲存於第1表410。又,可將過去發生之事件資料合併為第1期間單位,按照事件發生時刻之順序而儲存於第1表410。例如,基於與2023年4月1日16時31分19秒發生之物品訂單事件對應之第3事件資料的第1類型之資料之值可為3,並可儲存於第1表410。2023年4月1日16時35分20秒發生之物品訂單取消事件可為取消藉由2023年4月1日16時31分19秒發生之物品訂單事件而訂購之物品中之一部分之事件。因此,基於與2023年4月1日16時35分20秒發生之物品訂單事件對應之第2事件資料的第1類型之資料之值可為-1,並可儲存於第1表410。 As an example, data of the first type may be stored in the first table 410 in the memory 102. When the first period unit is 10 seconds, data of the first type generated by merging the first event data with event occurrence times from 13:01:10 on May 3, 2023 to 13:01:20 on May 3, 2023 may be stored in the first table 410. For example, the first event data 401 corresponding to the first event occurring between 13:01:10 on May 3, 2023 and 13:01:20 on May 3, 2023 may be stored in the first table 410 as data of the first type after being processed at 13:01:11 on May 3, 2023. In addition, event data that occurred in the past may be combined into the first period unit and stored in the first table 410 in the order of the event occurrence. For example, the value of the first type of data based on the third event data corresponding to the item order event that occurred at 16:31:19 on April 1, 2023 may be 3 and may be stored in the first table 410. The item order cancellation event that occurred at 16:35:20 on April 1, 2023 may be an event that cancels part of the items ordered by the item order event that occurred at 16:31:19 on April 1, 2023. Therefore, the value of the data of the first type based on the second event data corresponding to the item order event occurring at 16:35:20 on April 1, 2023 can be -1 and can be stored in the first table 410.

作為一實施例,儲存器102中之第2表可包括複數個子表。第2類型之資料可包括與複數個期間單位對應之複數個等級之資料,複數個期間單位可基於度量而設定。參照圖4,於複數個期間單位包括作為第2期間單位之一個月、與作為第3期間單位之半年時,第1子表421可儲存與第2期間單位對應之第2類型之資料,第2子表422可儲存與第3期間單位對應之第2類型之資料。於圖4中,與第2期間單位對應之第2類型之資料可稱為第1等級之資料,與第3期間單位對應之第3類型之資料可稱為第2等級之資料。 As an embodiment, the second table in the memory 102 may include a plurality of sub-tables. The second type of data may include a plurality of levels of data corresponding to a plurality of period units, and the plurality of period units may be set based on measurement. Referring to FIG. 4 , when the plurality of period units include a month as the second period unit and half a year as the third period unit, the first sub-table 421 may store the second type of data corresponding to the second period unit, and the second sub-table 422 may store the second type of data corresponding to the third period unit. In FIG. 4 , the second type of data corresponding to the second period unit may be referred to as the first level of data, and the third type of data corresponding to the third period unit may be referred to as the second level of data.

將與2023年5月內發生之事件對應之第1類型之資料合併而產生之資料可作為第2類型之資料儲存於第1子表421。更具體而言,2023年5月內發生之事件可包括2023年5月3日13時01分10秒發生之物品訂單事 件。 The data generated by merging the data of type 1 corresponding to the events occurring in May 2023 can be stored as data of type 2 in the first sub-table 421. More specifically, the events occurring in May 2023 may include the item order event occurring at 13:01:10 on May 3, 2023.

將與2023年4月內發生之事件對應之第1類型之資料合併而產生之資料可作為第2類型之資料儲存於第1子表421。更具體而言,2023年4月內發生之事件可包括2023年4月1日16時31分19秒發生之物品訂單事件、及2023年4月1日16時35分20秒發生之物品訂單取消事件。此時,與2023年4月對應之第2類型之資料之值可確定為-1與3之和2,-1與3分別為2023年4月1日16時31分19秒發生之物品訂單事件與2023年4月1日16時35分20秒發生之物品訂單取消事件之值。又,與2023年4月對應之第2類型之資料之事件發生時刻可包括2023年4月1日16時31分19秒。即,與物品訂單取消事件對應之事件發生時刻不包括於第2類型之資料之事件發生時刻,但可累積至第2類型之資料之值中。 The data generated by merging the data of the first type corresponding to the events occurring in April 2023 can be stored as the data of the second type in the first sub-table 421. More specifically, the events occurring in April 2023 can include the item order event occurring at 16:31:19 on April 1, 2023, and the item order cancellation event occurring at 16:35:20 on April 1, 2023. At this time, the value of the data of the second type corresponding to April 2023 can be determined as the sum of -1 and 3, 2, where -1 and 3 are the values of the item order event occurring at 16:31:19 on April 1, 2023 and the item order cancellation event occurring at 16:35:20 on April 1, 2023, respectively. In addition, the event occurrence time of the data of type 2 corresponding to April 2023 may include 16:31:19 on April 1, 2023. That is, the event occurrence time corresponding to the item order cancellation event is not included in the event occurrence time of the data of type 2, but can be accumulated into the value of the data of type 2.

將與2023年3月內發生之事件對應之第1類型之資料合併而產生之資料可作為第2類型之資料儲存於第1子表421。更具體而言,2023年3月內發生之事件可包括2023年3月1日16時31分19秒發生之物品訂單事件、及2023年3月2日15時31分19秒發生之物品訂單事件。此時,與2023年4月對應之第2類型之資料之值可確定為3與6之和9,3與6分別為2023年3月1日16時31分19秒發生之物品訂單事件及2023年3月2日15時31分19秒發生之物品訂單事件之值。又,與2023年3月對應之第2類型之資料之事件發生時刻可包括2023年3月1日16時31分19秒及2023年3月2日15時31分19秒。 The data generated by merging the data of the first type corresponding to the events occurring in March 2023 can be stored as the data of the second type in the first sub-table 421. More specifically, the events occurring in March 2023 can include the item order event occurring at 16:31:19 on March 1, 2023, and the item order event occurring at 15:31:19 on March 2, 2023. At this time, the value of the data of the second type corresponding to April 2023 can be determined as the sum of 3 and 6, 9, and 3 and 6 are the values of the item order event occurring at 16:31:19 on March 1, 2023, and the item order event occurring at 15:31:19 on March 2, 2023, respectively. In addition, the event occurrence time of the second type of data corresponding to March 2023 may include 16:31:19 on March 1, 2023 and 15:31:19 on March 2, 2023.

將與2023年之上半年即1月至6月發生之事件對應之第1等級之資料合併而產生之資料可作為第2類型之資料儲存於第2子表422。第2等級之資料之值可確定為第1等級之資料各者之值即10、2、9之和21。 第2等級之資料之事件發生時刻可包括2023年5月3日13時01分10秒、2023年4月1日16時31分19秒、2023年3月1日16時31分19秒、及2023年3月2日15時31分19秒。儘管圖4中未圖示,但若將基於第2表所儲存之下位等級之資料而產生之上位等級之資料作為第2類型之資料儲存於第2表,則下位等級之資料與上位等級之資料可能會部分重複。下位等級之資料可於自上位等級之資料儲存於第2表之時點起經過設定期間之時點刪除。於資料管理之效率方面,設定期間可設定得較短。 The data generated by merging the data of the first level corresponding to the events occurring in the first half of 2023, i.e., from January to June, can be stored in the second sub-table 422 as the data of the second type. The value of the data of the second level can be determined as the sum of the values of the data of the first level, i.e., 10, 2, 9, and 21. The event occurrence time of the data of the second level can include 13:01:10 on May 3, 2023, 16:31:19 on April 1, 2023, 16:31:19 on March 1, 2023, and 15:31:19 on March 2, 2023. Although not shown in Figure 4, if the upper-level data generated based on the lower-level data stored in Table 2 is stored in Table 2 as the second type of data, the lower-level data and the upper-level data may be partially duplicated. The lower-level data can be deleted at a time point after a set period of time has passed since the upper-level data was stored in Table 2. In terms of data management efficiency, the set period can be set shorter.

如圖3及圖4所示,電子裝置100可將複數個期間單位內在服務上發生之事件資料分別合併而分層儲存。又,於第1表及第2表中重複儲存之資料滿足設定之條件(例如,包括自第2表所儲存之時點起經過設定期間之第1條件及資料之有效性為假之第2條件)時,電子裝置100可刪除重複儲存之資料之一部分。因此,可提高資料儲存管理之效率。 As shown in Figures 3 and 4, the electronic device 100 can merge the event data that occurred on the service within multiple time units and store them in layers. In addition, when the data stored repeatedly in the first table and the second table meets the set conditions (for example, the first condition that the set time has passed since the time point stored in the second table and the second condition that the validity of the data is false), the electronic device 100 can delete part of the repeatedly stored data. Therefore, the efficiency of data storage management can be improved.

圖5係示出傳輸與自終端獲得之查詢對應之響應資料之資訊之方法之流程圖。 FIG5 is a flow chart showing a method for transmitting information of response data corresponding to a query obtained from a terminal.

參照圖5,可清楚地理解,電子裝置100傳輸與自終端120獲得之查詢對應之響應資料之資訊的各動作可於本發明所屬技術領域之常識者明確理解之範圍內,變更、替換一部分動作,或動作之間之某些順序可變更。 Referring to FIG. 5 , it can be clearly understood that each action of the electronic device 100 transmitting information of the response data corresponding to the query obtained from the terminal 120 can be changed or replaced in part, or some orders between actions can be changed within the scope clearly understood by a person with common sense in the technical field to which the present invention belongs.

於步驟S510中,電子裝置100可自終端獲得查詢。 In step S510, the electronic device 100 may obtain a query from the terminal.

自終端120獲得之查詢可包括度量之資訊及查詢期間之資訊。 The query received from the terminal 120 may include information about the measurement and information about the query period.

於步驟S520中,電子裝置100可於第2表所儲存之第2類型之資料中識別與查詢對應之第2資料。 In step S520, the electronic device 100 can identify and query the corresponding second data in the second type of data stored in the second table.

於步驟S530中,電子裝置100可於第1表所儲存之第1類型之資料中識別與查詢對應之第3資料。 In step S530, the electronic device 100 can identify and query the corresponding third data in the data of the first type stored in the first table.

根據一實施例,電子裝置100可於儲存器102中之第1表及第2表所儲存之第1類型之資料及第2類型之資料中識別與查詢對應之第2資料及第3資料。作為一實施例,第1期間單位可為10秒。又,複數個期間單位不僅包括作為第2期間單位之1日,亦可包括一個月、季度及半年。與查詢對應之查詢期間可為自2023年1月1日至目前時點2023年5月2日13時1分10秒。電子裝置100可識別與查詢對應之至少一個期間單位,並且基於第2表所儲存之第2類型之資料中之至少一個期間單位之資料而識別第2資料。至少一個期間單位可為1日、一個月及季度。電子裝置100可根據包括1)及2)之各種方法而識別第2資料及第3資料。 According to one embodiment, the electronic device 100 can identify the second data and the third data corresponding to the query from the first type of data and the second type of data stored in the first table and the second table in the memory 102. As an embodiment, the first period unit can be 10 seconds. In addition, the plurality of period units include not only 1 day as the second period unit, but also a month, a quarter, and a half year. The query period corresponding to the query can be from January 1, 2023 to the current time point of May 2, 2023 at 13:01:10. The electronic device 100 can identify at least one period unit corresponding to the query, and identify the second data based on the data of at least one period unit in the data of the second type stored in the second table. The at least one period unit can be 1 day, 1 month, and 1 quarter. The electronic device 100 can identify the second data and the third data according to various methods including 1) and 2).

1)作為一實施例,電子裝置100可將第2表所儲存之第2類型之資料中與2023年第1季度(自2023年1月1日至2023年3月31日)對應之資料、與2023年4月及5月對應之資料、與2023年5月1日對應之資料識別為第2資料。 1) As an embodiment, the electronic device 100 can identify the data corresponding to the first quarter of 2023 (from January 1, 2023 to March 31, 2023), the data corresponding to April and May 2023, and the data corresponding to May 1, 2023 among the data of the second type stored in the second table as the second data.

又,電子裝置100可將第1表所儲存之第1類型之資料中i)自2023年5月2日0時0分0秒至2023年5月2日0時0分10秒之資料、ii)自2023年5月2日0時0分10秒至2023年5月2日0時0分20秒之資料、...iii)自2023年5月2日13時1分0秒至2023年5月2日13時1分10秒之資料識別為第3資料。此時之第2資料與第3資料可相互排斥(Mutually Exclusive)。 Furthermore, the electronic device 100 can identify the data of the first type stored in the first table as the third data: i) data from 0:0:00 on May 2, 2023 to 0:0:10 on May 2, 2023, ii) data from 0:0:10 on May 2, 2023 to 0:0:20 on May 2, 2023, ... iii) data from 13:01:00 on May 2, 2023 to 13:01:10 on May 2, 2023. At this time, the second data and the third data can be mutually exclusive.

2)作為另一示例,於自與第1表所儲存之資料對應之資料儲存於第2表之時點起經過設定期間(例如,一個月)之時點,第1表所儲存之資料可刪除。即,以目前時點2023年5月2日13時1分10秒為基準,第1 表所儲存之第1類型之資料中事件發生時刻至2023年4月1日為止之資料可為刪除之狀態,以提高資料管理方面之效率。相反,自第1表所儲存之2023年4月2日起至目前時點為止之資料可與第2表所儲存之第2類型之資料部分重複。電子裝置100可據此識別第2資料及第3資料。具體而言,電子裝置100可將第2表所儲存之第2類型之資料中與2023年第1季度(自2023年1月1日至2023年3月31日)對應之資料、與2023年4月及5月對應之資料、與2023年5月1日對應之資料識別為第2資料。 2) As another example, at a time point when a set period (e.g., one month) has passed since the data corresponding to the data stored in the first table was stored in the second table. That is, based on the current time point of May 2, 2023, 13:01:10, the data of the first type of data stored in the first table from the time of the event to April 1, 2023 can be deleted to improve the efficiency of data management. On the contrary, the data stored in the first table from April 2, 2023 to the current time point can be partially duplicated with the data of the second type stored in the second table. The electronic device 100 can identify the second data and the third data based on this. Specifically, the electronic device 100 can identify the data corresponding to the first quarter of 2023 (from January 1, 2023 to March 31, 2023), the data corresponding to April and May 2023, and the data corresponding to May 1, 2023 among the data of the second type stored in the second table as the second data.

又,電子裝置100可將第1表所儲存之第1類型之資料中之i)自2023年4月2日0時0分0秒至2023年4月2日0時0分10秒為止之資料、ii)自2023年4月2日0時0分10秒至2023年4月2日0時0分20秒為止之資料、...iii)自2023年5月2日13時1分0秒至2023年5月2日13時1分10秒為止之資料識別為第3資料。此時,第2資料與第3資料可能會部分重複。 Furthermore, the electronic device 100 can identify i) data from 0:0:00 on April 2, 2023 to 0:0:10 on April 2, 2023, ii) data from 0:0:10 on April 2, 2023 to 0:0:20 on April 2, 2023, ... iii) data from 13:01:00 on May 2, 2023 to 13:01:10 on May 2, 2023 among the data of the first type stored in the first table as the third data. At this time, the second data and the third data may be partially repeated.

於步驟S540中,電子裝置100可基於第2資料及第3資料而產生與查詢對應之響應資料。 In step S540, the electronic device 100 can generate response data corresponding to the query based on the second data and the third data.

作為一個示例,於第2資料與第3資料相互排斥時,電子裝置100可整合第2資料及第3資料而產生與查詢對應之響應資料。 As an example, when the second data and the third data are mutually exclusive, the electronic device 100 can integrate the second data and the third data to generate response data corresponding to the query.

然而,第1表所儲存之第1類型之資料之更新可能不會反映於第2表所儲存之第2類型之資料中。或者,根據識別第2資料及第3資料之方法,第2資料及第3資料可能會部分重複。此時,電子裝置100可藉由比較第1表與第2表所儲存之資料,驗證資料之準確度。具體而言,電子裝置100可將對應於第2資料之事件發生時刻與對應於第3資料之事件發生時刻進行比較,於第3資料中識別與第2資料重複之第4資料,於第3資料中過濾第4資料而識別第5資料,基於第2資料及第5資料而產生響應資料。 However, the update of the data of the first type stored in the first table may not be reflected in the data of the second type stored in the second table. Alternatively, according to the method of identifying the second data and the third data, the second data and the third data may be partially repeated. In this case, the electronic device 100 can verify the accuracy of the data by comparing the data stored in the first table with the data stored in the second table. Specifically, the electronic device 100 can compare the time of occurrence of the event corresponding to the second data with the time of occurrence of the event corresponding to the third data, identify the fourth data that is repeated with the second data in the third data, filter the fourth data in the third data and identify the fifth data, and generate response data based on the second data and the fifth data.

於步驟S550中,電子裝置100可將響應資料之資訊傳輸至終端。 In step S550, the electronic device 100 may transmit the information of the response data to the terminal.

作為一實施例,電子裝置100可將於步驟S540中產生之響應資料之資訊傳輸至終端120。與此相關,電子裝置100將複數個期間單位內在服務上發生之事件資料分別合併而分層儲存於儲存器102,並自儲存器102提供響應資料之資訊,與使用單獨儲存於訊息隊列之事件資料而提供與查詢對應之響應資料相比,可能會在資料處理效率方面更有效率。 As an embodiment, the electronic device 100 may transmit the information of the response data generated in step S540 to the terminal 120. In this regard, the electronic device 100 merges the event data occurring on the service within a plurality of time units and stores them in layers in the memory 102, and provides the information of the response data from the memory 102, which may be more efficient in data processing efficiency than using the event data stored separately in the message queue to provide the response data corresponding to the query.

圖6係用以說明於實行合併操作之過程中,在實行查詢操作時,電子裝置提供與查詢對應之響應資料之資訊之方法的圖。 FIG. 6 is a diagram for explaining a method in which an electronic device provides information of response data corresponding to a query when performing a query operation during a merge operation.

此處,合併操作可包括:i)讀取(read)操作,其於在t1時點於第1表600所儲存之第1類型之資料中識別與第2期間單位對應之第1資料、ii)寫入(write)操作,其於t3時點將基於第1資料而產生之第2類型之資料儲存於第2表610中、及iii)刪除(delete)操作,其於t4時點自第1表600所儲存之第1類型之資料中刪除與第2表610所儲存之資料重複之資料。又,查詢操作可包括提供與自圖6之終端120獲得之查詢對應之響應資料之資訊。 Here, the merge operation may include: i) a read operation, which identifies the first data corresponding to the second period unit in the data of the first type stored in the first table 600 at time t1, ii) a write operation, which stores the data of the second type generated based on the first data in the second table 610 at time t3, and iii) a delete operation, which deletes the data of the first type stored in the first table 600 that is duplicated with the data stored in the second table 610 at time t4. In addition, the query operation may include providing information of the response data corresponding to the query obtained from the terminal 120 of FIG. 6.

參照圖6,查詢操作可於實行點亮操作之t2時點及實行刪除操作之t4時點之間之t3時點執行。此時,由於在t3時點尚未實行刪除操作,因此第1表600及第2表610所儲存之資料可能會部分重複。電子裝置100可基於第1表600及第2表610所儲存之資料之事件發生時刻及用以識別事件之識別資訊,識別第1表600所儲存之資料中與第2表610所儲存之資料重複之第4資料。電子裝置100可於第1表600所儲存之資料中識別過濾第4資料之第5資料。電子裝置100可基於第5資料及第2表610所儲存之資 料,產生與查詢對應之響應資料。 Referring to FIG. 6 , the query operation may be performed at time t3 between time t2 when the lighting operation is performed and time t4 when the deletion operation is performed. At this time, since the deletion operation has not been performed at time t3, the data stored in the first table 600 and the second table 610 may be partially repeated. The electronic device 100 may identify the fourth data in the data stored in the first table 600 that is repeated with the data stored in the second table 610 based on the event occurrence time of the data stored in the first table 600 and the second table 610 and the identification information used to identify the event. The electronic device 100 may identify the fifth data that filters the fourth data in the data stored in the first table 600. The electronic device 100 can generate response data corresponding to the query based on the fifth data and the data stored in the second table 610.

圖7係示出修正儲存於表中之資料之方法之流程圖。 FIG7 is a flow chart showing a method for modifying data stored in a table.

參照圖7,可清楚地理解,電子裝置100修正儲存於表中之資料之各動作可於本發明所屬技術領域之常識者明確理解之範圍內,變更、替換一部分動作,或動作之間之某些順序可變更。 Referring to FIG. 7 , it can be clearly understood that the various actions of the electronic device 100 to modify the data stored in the table can be changed or replaced within the scope of the common sense in the technical field to which the present invention belongs, or some orders between the actions can be changed.

根據一實施例,於在第1表320中新儲存或更新第1類型之資料之時點起經過設定期間時,可將第2類型之資料新儲存或更新至第2表330。特別是,於設定期間設定為與第1類型之資料對應之可取消事件之期間時,可最小化第1表320所儲存之資料之修正操作。然而,若i)設定期間設定為短於與第1類型之資料對應之可取消事件之期間、ii)對應於第1類型之資料新儲存或更新至第1表320,第2類型之資料亦新儲存或更新至第2表330,則可在發生新事件時對第2表所儲存之資料實行修正操作。 According to one embodiment, when a set period has passed since the time when the data of the first type is newly stored or updated in the first table 320, the data of the second type can be newly stored or updated in the second table 330. In particular, when the set period is set to the period of the cancelable event corresponding to the data of the first type, the modification operation of the data stored in the first table 320 can be minimized. However, if i) the set period is set to be shorter than the period of the cancelable event corresponding to the data of the first type, ii) the data corresponding to the first type is newly stored or updated in the first table 320, and the data of the second type is also newly stored or updated in the second table 330, the data stored in the second table can be modified when a new event occurs.

於步驟S710中,電子裝置100可識別與在服務上發生之第2事件對應之第2事件資料及與第2事件對應之第2識別資訊。 In step S710, the electronic device 100 can identify the second event data corresponding to the second event occurring on the service and the second identification information corresponding to the second event.

於步驟S720中,電子裝置100可基於第2識別資訊,於第2表所儲存之資料中識別第8資料,該第8資料係識別資訊與第2識別資訊對應者。 In step S720, the electronic device 100 can identify the eighth data in the data stored in the second table based on the second identification information, and the eighth data is the identification information corresponding to the second identification information.

根據一實施例,於在服務上即時發生第2事件時,電子裝置100可識別與第2事件對應之第2事件資料及與第2事件對應之第2識別資訊。又,電子裝置100可基於第2識別資訊,於第2表所儲存之資料中識別第8資料,該第8資料係識別資訊與第2識別資訊對應者。作為一實施例,第2事件可為與第8資料對應之事件中之第1事件之取消事件。然而,第2事件但不限於此。例如,第2事件可為與第8資料對應之事件中與第1事件 相關之(co-related)事件。例如,於第1事件為物品訂單之事件時,第2事件可為物品訂單之修正事件。 According to one embodiment, when the second event occurs in real time on the service, the electronic device 100 can identify the second event data corresponding to the second event and the second identification information corresponding to the second event. In addition, the electronic device 100 can identify the eighth data in the data stored in the second table based on the second identification information, and the eighth data is the identification information corresponding to the second identification information. As an embodiment, the second event can be a cancellation event of the first event in the event corresponding to the eighth data. However, the second event is not limited to this. For example, the second event can be an event co-related to the first event in the event corresponding to the eighth data. For example, when the first event is an event of an item order, the second event can be an event of a modification of the item order.

於步驟S730中,電子裝置100可基於第2事件資料而修正第8資料。 In step S730, the electronic device 100 can modify the eighth data based on the second event data.

於步驟S740中,電子裝置100可將修正之第8資料儲存至第2表。 In step S740, the electronic device 100 can store the modified 8th data into the 2nd table.

根據一實施例,第8資料可根據與第1事件對應之度量包括於第1子度量集或第2子度量集中哪一組而進行不同之修改。i)於與第1事件對應之度量包括於第1子度量集時,修正之第8資料之值可基於修正前之第8資料之值及與第2事件資料對應之值而確定。例如,於與第1事件對應之度量為「訂單件數(order-count)」時,修正之第8資料之值可對應於從修正前之第8資料之值中減去與第2事件對應之訂單取消件數。ii)於與第1事件對應之度量包括於第2子度量集時,修正之第8資料之值可基於修正前之第8資料之值、與事件發生時刻及第2事件資料對應之值、事件發生時刻而確定。例如,於與第1事件對應之度量為「最新訂單日期(Order-last-date)」時,修正之第8資料之值可根據在第2期間單位內是否發生了除第1事件以外之其他事件而確定為「真(True)」或「假(False)」。又,於存在除第2期間單位內發生之第1事件以外之其他事件時,修正之第8資料之事件發生時刻可確定為除第1事件以外之其他事件之事件發生時刻中的最新時刻。因此,電子裝置100可將第2表所儲存之第2資料更新為修正之第2資料。 According to one embodiment, the 8th data may be modified differently depending on whether the metric corresponding to the 1st event is included in the 1st sub-metric set or the 2nd sub-metric set. i) When the metric corresponding to the 1st event is included in the 1st sub-metric set, the value of the modified 8th data may be determined based on the value of the 8th data before modification and the value corresponding to the 2nd event data. For example, when the metric corresponding to the 1st event is "order count", the value of the modified 8th data may correspond to subtracting the number of order cancellations corresponding to the 2nd event from the value of the 8th data before modification. ii) When the metric corresponding to the 1st event is included in the 2nd sub-metric set, the value of the modified 8th data may be determined based on the value of the 8th data before modification, the time of the event occurrence, the value corresponding to the 2nd event data, and the time of the event occurrence. For example, when the metric corresponding to the first event is "Order-last-date", the value of the revised eighth data can be determined as "True" or "False" according to whether other events other than the first event occurred within the second period unit. In addition, when there are other events other than the first event occurring within the second period unit, the event occurrence time of the revised eighth data can be determined as the latest time among the event occurrence times of other events other than the first event. Therefore, the electronic device 100 can update the second data stored in the second table to the revised second data.

圖8係用以說明一實施例之用以設定需要彙總之事件資料與度量之頁面的圖。 FIG8 is a diagram for illustrating a page for setting event data and metrics to be summarized in one embodiment.

參照圖8,頁面800可為用以設定需要彙總之事件資料與度量之頁面。頁面800可包括第1區域810、第2區域820、第3區域841、第4區域842及第5區域850。 Referring to FIG. 8 , page 800 may be a page for setting event data and metrics to be summarized. Page 800 may include a first area 810 , a second area 820 , a third area 841 , a fourth area 842 , and a fifth area 850 .

第1區域810可為用以選擇會員或產品中之一者作為實體類型(Entity type)之區域。又,第2區域820可為用以設定實體ID(Entity ID)之區域,該實體ID(Entity ID)係用以區分第1區域810中選擇之會員或產品與其他會員或產品。與此相關,事件資料可包括會員之識別資訊及產品之識別資訊中之至少一者。參照圖8,實體類型(Entity type)可設定為「會員(Member)」,實體ID(Entity ID)可為「138339393」。又,根據圖3及圖4之實施例,實體類型(Entity type)可為「會員(Member)」,實體ID(Entity ID)可為「123」。 The first area 810 may be an area for selecting one of a member or a product as an entity type. Furthermore, the second area 820 may be an area for setting an entity ID, which is used to distinguish the member or product selected in the first area 810 from other members or products. In this regard, the event data may include at least one of the member's identification information and the product's identification information. Referring to FIG. 8 , the entity type may be set to "Member", and the entity ID may be "138339393". Furthermore, according to the embodiments of FIG. 3 and FIG. 4 , the entity type may be "Member", and the entity ID may be "123".

又,第3區域841及第4區域842可為用以自與在服務上發生之事件對應之事件資料之提取時點即第1時點起設定第2時點之區域。第3區域841可與第1時點對應,第4區域842可與第2時點對應。 Furthermore, the third area 841 and the fourth area 842 may be areas for setting the second time point from the first time point, which is the time point at which the event data corresponding to the event occurring on the service is extracted. The third area 841 may correspond to the first time point, and the fourth area 842 may correspond to the second time point.

第5區域850可為用以連接至顯示彙總資料之資訊之頁面之區域。對應於藉由第3區域830中之「檢索(Search)」圖標之動作,電子裝置100可提供顯示彙總資料之頁面。 The fifth area 850 may be an area for connecting to a page displaying information of the summary data. In response to the action of the "Search" icon in the third area 830, the electronic device 100 may provide a page displaying the summary data.

第6區域860可為用以設定如「會員登入最新日期(Member Login Last Date)」等度量之資訊之區域。然而,除藉由第6區域860而設定之度量集以外,亦可設定定製度量之資訊。更具體而言,用戶可藉由第6區域860而設定將是否滿足特定條件表示為「真(True)」或「假(False)」之度量。例如,添加之特定條件可能與使用者是否在設定期間內訂購設定之訂單金額以上有關。因此,電子裝置100可提供在服務中與添加之特定 條件之度量對應之值為「真(True)」之用戶之列表。即,藉由將是否滿足特定條件之度量設定為「真(True)」或「假(False)」,電子裝置100可提供與添加之特定條件之度量對應之值為「真(True)」之用戶之列表、或與添加之特定條件之度量對應之值為「假(False)」之用戶之列表。 The sixth area 860 may be an area for setting information of a metric such as "Member Login Last Date". However, in addition to the metric set set by the sixth area 860, information of a custom metric may also be set. More specifically, the user may set a metric that indicates whether a specific condition is satisfied as "True" or "False" by the sixth area 860. For example, the added specific condition may be related to whether the user has placed an order of a set amount or more within a set period. Therefore, the electronic device 100 may provide a list of users whose value corresponding to the metric of the added specific condition is "True" in the service. That is, by setting the metric of whether a specific condition is satisfied to "True" or "False", the electronic device 100 can provide a list of users whose values corresponding to the metric of the added specific condition are "True" or a list of users whose values corresponding to the metric of the added specific condition are "False".

圖9係用以說明實施例之顯示彙總資料之頁面的圖。 FIG. 9 is a diagram for illustrating a page displaying summary data in an embodiment.

參照圖9,頁面900可為顯示彙總資料之頁面。頁面900之區域910可顯示頁面800中包括之各度量之值。例如,與「會員登入最新日期(Member Login Last Date)」之度量對應之值可為「2023-05-18 16:44:21 KST」。 Referring to FIG. 9 , page 900 may be a page for displaying summary data. Area 910 of page 900 may display the value of each metric included in page 800. For example, the value corresponding to the metric of "Member Login Last Date" may be "2023-05-18 16:44:21 KST".

圖10係示出一實施例之用以管理與服務相關之資料之電子裝置的方塊圖。 FIG. 10 is a block diagram showing an electronic device for managing service-related data according to an embodiment.

圖10之電子裝置100可對應於本發明說明書之電子裝置。根據一實施例,電子裝置100可包括收發器101、儲存器102及一個以上之處理器(processor)103。如圖10所示之電子裝置100僅圖示有與本實施例相關之構成要素。因此,與本實施例之相關之技術領域中具有常識者可理解,除圖10所示之構成要素外,可進而包括其他通用構成要素。 The electronic device 100 of FIG. 10 may correspond to the electronic device of the present invention. According to one embodiment, the electronic device 100 may include a transceiver 101, a memory 102, and one or more processors 103. The electronic device 100 shown in FIG. 10 only illustrates the components related to the present embodiment. Therefore, those with common sense in the technical field related to the present embodiment can understand that in addition to the components shown in FIG. 10, other general components may be further included.

例如,根據一實施例,電子裝置100可包括收發器(transceiver)101。收發器101可作為用以實行有線/無線通訊之裝置,與外部電子裝置進行通訊。外部電子裝置可為終端120。又,收發器101使用之通訊技術可包括GSM(Global System for Mobile communication,全球移動通訊系統)、CDMA(Code Division Multi Access,碼分多重存取)、LTE(Long Term Evolution,長期演進)、5G(5th generation mobile network,第五代行動網路)、WLAN(Wireless LAN,無線區域網)、Wi- Fi(Wireless-Fidelity,無線保真)、藍牙(Bluetooth)、RFID(Radio Frequency Identification,無線射頻識別)、紅外線通訊(Infrared Data Association,IrDA)、紫蜂(Zigbee)、NFC(Near Field Communication,近場通訊)等。 For example, according to one embodiment, the electronic device 100 may include a transceiver 101. The transceiver 101 may be a device for implementing wired/wireless communication to communicate with an external electronic device. The external electronic device may be a terminal 120. Furthermore, the communication technology used by the transceiver 101 may include GSM (Global System for Mobile communication), CDMA (Code Division Multi Access), LTE (Long Term Evolution), 5G (5th generation mobile network), WLAN (Wireless LAN), Wi- Fi (Wireless-Fidelity), Bluetooth, RFID (Radio Frequency Identification), Infrared Data Association (IrDA), Zigbee, NFC (Near Field Communication), etc.

根據一實施例,收發器101可自終端120接收查詢之資訊,並將與查詢對應之響應資料之資訊提供至終端120。 According to one embodiment, the transceiver 101 can receive query information from the terminal 120 and provide information of response data corresponding to the query to the terminal 120.

儲存器102可儲存藉由圖1至圖10實行上述至少一個方法之資訊。儲存器102可儲存藉由一個以上之處理器103實行之一個以上之命令。儲存器102可稱為記憶體,可為揮發性記憶體或非揮發性記憶體。儲存器102可包括設定之度量集之資訊,各度量之複數個期間單位之資訊。 The memory 102 can store information for implementing at least one of the above methods by using FIG. 1 to FIG. 10. The memory 102 can store one or more commands implemented by one or more processors 103. The memory 102 can be called a memory, which can be a volatile memory or a non-volatile memory. The memory 102 can include information of a set of measurement sets and information of multiple time units of each measurement.

一個以上之處理器103可控制電子裝置100之整體動作,並處理資料及信號。一個以上之處理器103可實行圖1至圖10所述之一個方法。一個以上之處理器103可由至少一個硬體單元構成。又,一個以上之處理器103可藉由執行儲存器102所儲存之一個以上之命令而產生之一個以上之軟體模組來動作。一個以上之處理器103可藉由構成要素之相互作用而控制由電子裝置100實行之實施例,該構成要素可進而包括收發器101及儲存器102、與電子裝置100。 One or more processors 103 can control the overall operation of the electronic device 100 and process data and signals. One or more processors 103 can implement one of the methods described in Figures 1 to 10. One or more processors 103 can be composed of at least one hardware unit. In addition, one or more processors 103 can operate by executing one or more commands stored in the memory 102 to generate one or more software modules. One or more processors 103 can control the implementation of the electronic device 100 through the interaction of components, which can further include the transceiver 101 and the memory 102, and the electronic device 100.

根據一實施例,處理器103可藉由執行一個以上之命令,識別與第1期間單位內在服務上發生之事件對應之第1事件資料,基於第1事件資料,將第1類型之資料儲存至第1表,基於第1表所儲存之第1類型之資料中與第2期間單位對應的第1資料而產生第2類型之資料,且將第2類型之資料儲存至第2表。 According to one embodiment, the processor 103 can identify the first event data corresponding to the event occurring on the service in the first period unit by executing one or more commands, store the first type of data in the first table based on the first event data, generate the second type of data based on the first data corresponding to the second period unit among the first type of data stored in the first table, and store the second type of data in the second table.

另一方面,於本說明書與附圖中描述了本發明之較佳實施 例,雖然使用了特定用語,但該等用語僅於一般意義上使用以便說明本發明之技術內容,幫助理解發明,並非為了限定本發明之範圍。除本文所揭示之實施例以外,本領域技術人員當然還可於本發明之技術思想之基礎上實施其他變化例。 On the other hand, the preferred embodiments of the present invention are described in this specification and the accompanying drawings. Although specific terms are used, these terms are only used in a general sense to explain the technical content of the present invention and help understand the invention, and are not intended to limit the scope of the present invention. In addition to the embodiments disclosed herein, technical personnel in this field can of course implement other variations based on the technical ideas of the present invention.

上述實施例之電子裝置或終端可包括:處理器、儲存並執行程式資料之記憶體、如磁碟驅動器之永久儲存器(permanent storage)、與外部裝置通訊之通訊埠、觸控面板、按鍵(key)、按鈕等用戶介面裝置等。藉由軟體模組或演算法實現之方法作為可於上述處理器上執行之電腦可讀代碼或程式命令,可儲存於電腦可讀記錄媒體上。此處,作為電腦可讀記錄媒體,有磁儲存媒體(例如,ROM(read-only memory,唯讀記憶體)、RAM(random-Access memory,隨機存取記憶體)、軟磁碟、硬磁碟等)及光學讀取媒體(如:光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD,Digital Versatile Disc))等。電腦可讀記錄媒體分散於連接於網路之電腦系統中,從而能夠以分散方式儲存電腦可讀代碼並執行。媒體可由電腦讀取,儲存於記憶體中,可於處理器中執行。 The electronic device or terminal of the above embodiment may include: a processor, a memory for storing and executing program data, a permanent storage such as a disk drive, a communication port for communicating with external devices, a touch panel, a key, a button and other user interface devices, etc. The method implemented by the software module or algorithm can be stored in a computer-readable recording medium as a computer-readable code or program command that can be executed on the above processor. Here, as computer-readable recording media, there are magnetic storage media (e.g., ROM (read-only memory), RAM (random-Access memory), floppy disk, hard disk, etc.) and optical readable media (e.g., CD-ROM, DVD, Digital Versatile Disc), etc.). Computer-readable recording media are distributed in computer systems connected to the network, so that computer-readable codes can be stored and executed in a distributed manner. The media can be read by the computer, stored in the memory, and executed in the processor.

本實施例可由功能塊構成及各種處理步驟表示。該等功能塊可藉由執行特定功能之不同硬體或/及軟體構成來實現。例如,實施例可採用能夠藉由一個以上之微處理器之控制或其他控制裝置而執行各種功能之積體電路構成,如記憶體、處理、邏輯(logic)、查找表(look-uptable)等。構成要素可藉由軟體程式或軟體元件而執行,與此相似,本實施例包括以資料結構、程式、常式或其他程式構成之組合實現之演算法,因此可藉由如C、C++、Java、組譯程式(assembler)、Python等程式設計或腳本語言來實現。於功能方面而言,可藉由於一個以上處理器中執 行之演算法來實現。又,本實施例可採用先前技術來進行電子環境設定、信號處理及/或資料處理。諸如「機制」、「元件」、「機構」、「構成」之用語可廣泛地使用,並不限定為機械、物理構成。上述用語可與處理器等關聯而包括軟體之一連串之處理(routines)之含義。 The present embodiment may be represented by a functional block structure and various processing steps. Such functional blocks may be implemented by different hardware and/or software structures that perform specific functions. For example, the embodiment may be composed of integrated circuits that can perform various functions such as memory, processing, logic, look-up tables, etc., controlled by one or more microprocessors or other control devices. The components may be executed by software programs or software components. Similarly, the present embodiment includes algorithms implemented by a combination of data structures, programs, routines, or other programs, and can therefore be implemented by programming or scripting languages such as C, C++, Java, assemblers, Python, etc. In terms of functionality, it can be implemented by algorithms executed in one or more processors. In addition, this embodiment can use prior art to perform electronic environment settings, signal processing and/or data processing. Terms such as "mechanism", "component", "mechanism", and "structure" can be used broadly and are not limited to mechanical or physical structures. The above terms can be associated with processors and include the meaning of a series of processes (routines) of software.

上述實施例僅為一例,可於下文敍述之申請專利範圍中實現其他實施例。 The above embodiment is only one example, and other embodiments may be implemented within the scope of the patent application described below.

S210:步驟 S210: Step

S220:步驟 S220: Step

S230:步驟 S230: Step

S240:步驟 S240: Step

Claims (15)

一種管理與服務相關之資料之方法,其係藉由電子裝置而進行者,其包括如下步驟:識別與第1期間單位內在上述服務上發生之事件對應之第1事件資料;基於上述第1事件資料,將第1類型之資料儲存至第1表;基於上述第1表所儲存之上述第1類型之資料中與第2期間單位對應的第1資料,產生第2類型之資料;及將上述第2類型之資料儲存於第2表,其中產生上述第2類型之資料之步驟包括如下步驟:於作為上述第1類型之資料之第6資料新儲存至上述第1表時,基於上述第1資料及上述第6資料而產生作為上述第2類型之資料之第7資料,其中於自上述第7資料儲存於上述第2表之時點起經過設定期間、或上述第6資料之有效性為假時,自上述第1表中刪除上述第6資料。 A method for managing data related to a service, which is performed by an electronic device, comprises the following steps: identifying first event data corresponding to an event occurring on the service within a first period; based on the first event data, storing data of a first type in a first table; generating data of a second type based on the first data corresponding to a second period in the data of the first type stored in the first table; and storing the data of the second type in a first table. Stored in the second table, the step of generating the data of the second type includes the following steps: when the sixth data as the data of the first type is newly stored in the first table, the seventh data as the data of the second type is generated based on the first data and the sixth data, wherein when the set time has passed since the seventh data was stored in the second table, or the validity of the sixth data is false, the sixth data is deleted from the first table. 如請求項1之管理與服務相關之資料之方法,其中上述第1事件資料包括設定之度量集中包括之至少一個度量之資訊,且設定之上述度量集包括第1子度量集及第2子度量集。 A method for managing service-related data as in claim 1, wherein the first event data includes information of at least one metric included in a set metric set, and the set metric set includes a first sub-metric set and a second sub-metric set. 如請求項2之管理與服務相關之資料之方法,其中於上述第1事件資料中包括之第1子事件資料對應於上述第1子度量集中包括之第1度量時,上述第1類型之資料之值確定為上述第1子事件資料各者之值累積所得之第 1值,且於上述第1資料中包括之第2子資料對應於上述第1度量時,上述第2類型之資料之值確定為上述第2子資料各者之值累積所得之第2值。 A method for managing service-related data as in claim 2, wherein when the first sub-event data included in the first event data corresponds to the first metric included in the first sub-metric set, the value of the first type of data is determined to be the first value obtained by accumulating the values of each of the first sub-event data, and when the second sub-data included in the first data corresponds to the first metric, the value of the second type of data is determined to be the second value obtained by accumulating the values of each of the second sub-data. 如請求項2之管理與服務相關之資料之方法,其中於上述第1事件資料中包括之第1子事件資料對應於上述第2子度量集中包括之第2度量時,基於上述第1子事件資料各者之值及上述第1子事件資料各者之事件發生時刻,確定上述第1類型之資料,且於上述第1資料中包括之第2子資料對應於上述第2度量時,基於上述第2子資料各者之值及上述第2子資料各者之事件發生時刻,確定上述第2類型之資料。 A method for managing service-related data as in claim 2, wherein when the first sub-event data included in the first event data corresponds to the second metric included in the second sub-metric set, the data of the first type is determined based on the value of each of the first sub-event data and the time of occurrence of each of the first sub-event data, and when the second sub-data included in the first data corresponds to the second metric, the data of the second type is determined based on the value of each of the second sub-data and the time of occurrence of each of the second sub-data. 如請求項1之管理與服務相關之資料之方法,其中上述第2類型之資料包括與複數個期間單位對應之複數個等級之資料,且上述複數個期間單位係基於與上述第2類型之資料各者對應之度量而確定。 A method for managing service-related data as in claim 1, wherein the data of the second type mentioned above includes data of a plurality of levels corresponding to a plurality of time units, and the plurality of time units are determined based on the measurement corresponding to each of the data of the second type mentioned above. 如請求項5之管理與服務相關之資料之方法,其中上述複數個期間單位包括第3期間單位及第4期間單位,上述方法進而包括如下步驟:於上述第3期間單位為短於上述第4期間單位之期間單位且為上述複數個期間單位中與上述第4期間單位相鄰之期間單位時,於上述第2表所儲存之上述第2類型之資料中識別與上述第3期間單位對應之第1等級的資 料;及基於上述第1等級之資料,產生與上述第4期間單位對應之第2等級之資料。 A method for managing and service-related data as in claim 5, wherein the plurality of period units include a third period unit and a fourth period unit, and the method further includes the following steps: when the third period unit is a period unit shorter than the fourth period unit and is a period unit adjacent to the fourth period unit among the plurality of period units, identifying the first-level data corresponding to the third period unit in the second-type data stored in the second table; and generating the second-level data corresponding to the fourth period unit based on the first-level data. 如請求項1之管理與服務相關之資料之方法,其進而包括如下步驟:自終端獲得查詢;於上述第2表所儲存之上述第2類型之資料中,識別與上述查詢對應之第2資料;於上述第1表所儲存之第1類型之資料中識別與上述查詢對應之第3資料;基於上述第2資料及上述第3資料,產生與上述查詢對應之響應資料;及將上述響應資料之資訊傳輸至終端。 The method for managing service-related data as in claim 1 further comprises the following steps: obtaining a query from a terminal; identifying the second data corresponding to the query in the data of the second type stored in the second table; identifying the third data corresponding to the query in the data of the first type stored in the first table; generating response data corresponding to the query based on the second data and the third data; and transmitting information of the response data to the terminal. 如請求項7之管理與服務相關之資料之方法,其中產生上述響應資料之步驟包括如下步驟:將對應於上述第2資料之事件發生時刻與對應於上述第3資料之事件發生時刻進行比較,於上述第3資料中識別與上述第2資料重複之第4資料;於上述第3資料中過濾上述第4資料而識別第5資料;及基於上述第2資料及上述第5資料,產生上述響應資料。 The method for managing service-related data as in claim 7, wherein the step of generating the above-mentioned response data includes the following steps: comparing the time of occurrence of the event corresponding to the above-mentioned second data with the time of occurrence of the event corresponding to the above-mentioned third data, identifying the fourth data that is repeated with the above-mentioned second data in the above-mentioned third data; filtering the above-mentioned fourth data in the above-mentioned third data to identify the fifth data; and generating the above-mentioned response data based on the above-mentioned second data and the above-mentioned fifth data. 如請求項7之管理與服務相關之資料之方法,其中於上述第2類型之 資料包括與複數個期間單位對應之複數個等級之資料時,上述識別第2資料之步驟包括如下步驟:於上述複數個期間單位中識別與上述查詢對應之至少一個期間單位;及基於上述第2表所儲存之上述第2類型之資料中之上述至少一個期間單位之資料,識別上述第2資料。 A method for managing and service-related data as in claim 7, wherein when the data of the second type includes data of multiple levels corresponding to multiple time units, the step of identifying the second data includes the following steps: identifying at least one time unit corresponding to the query among the multiple time units; and identifying the second data based on the data of the at least one time unit in the data of the second type stored in the second table. 如請求項6之管理與服務相關之資料之方法,其中於自上述第2等級之資料儲存於上述第2表之時點起經過設定期間時,自上述第2表中刪除上述第1等級之資料。 The method for managing service-related data as in claim 6, wherein the data of the first level mentioned above is deleted from the second table mentioned above when a set period of time has passed since the data of the second level mentioned above was stored in the second table mentioned above. 如請求項1之管理與服務相關之資料之方法,其中上述第1事件資料包括上述服務之使用者識別資訊或上述服務之物品識別資訊中之至少一者。 A method for managing data related to a service as in claim 1, wherein the first event data includes at least one of user identification information of the service or item identification information of the service. 如請求項1之管理與服務相關之資料之方法,其中上述第2表所儲存之各資料包括用以識別對應之事件之識別資訊,且上述方法進而包括如下步驟:識別與在上述服務上發生之第2事件對應之第2事件資料、及與上述第2事件對應之第2識別資訊;基於上述第2識別資訊,於上述第2表所儲存之資料中識別第8資料,該第8資料係識別資訊與上述第2識別資訊對應者;基於上述第2事件資料而修正上述第8資料;及 將修正之上述第8資料儲存至上述第2表。 A method for managing service-related data as in claim 1, wherein each data stored in the second table includes identification information for identifying a corresponding event, and the method further includes the following steps: identifying the second event data corresponding to the second event occurring on the service, and the second identification information corresponding to the second event; based on the second identification information, identifying the eighth data in the data stored in the second table, the eighth data being the identification information corresponding to the second identification information; modifying the eighth data based on the second event data; and storing the modified eighth data in the second table. 如請求項1之管理與服務相關之資料之方法,其中上述設定期間對應於與上述第6資料對應之第3事件之可取消期間。 The method for managing service-related data as in claim 1, wherein the above-mentioned set period corresponds to the cancelable period of the third event corresponding to the above-mentioned sixth data. 一種用以管理與服務相關之資料之電子裝置,其包括:收發器;一個以上之處理器;及儲存器,其儲存藉由上述一個以上之處理器而執行之一個以上之命令;上述一個以上之處理器經組態藉由執行上述一個以上之命令,而識別與第1期間單位內在上述服務上發生之事件對應之第1事件資料,基於上述第1事件資料,將第1類型之資料儲存至第1表,基於上述第1表所儲存之上述第1類型之資料中與第2期間單位對應之第1資料,產生第2類型之資料,且將上述第2類型之資料儲存至第2表,其中上述一個以上之處理器更進一步經組態而於作為上述第1類型之資料之第6資料新儲存至上述第1表時,基於上述第1資料及上述第6資料而產生作為上述第2類型之資料之第7資料,其中於自上述第7資料儲存於上述第2表之時點起經過設定期間、或上述第6資料之有效性為假時,自上述第1表中刪除上述第6資料。 An electronic device for managing data related to a service, comprising: a transceiver; one or more processors; and a memory storing one or more commands executed by the one or more processors; the one or more processors are configured to identify first event data corresponding to an event occurring on the service within a first period unit by executing the one or more commands, store data of a first type in a first table based on the first event data, and store data of a first type in a second period unit based on the first event data. The first data corresponding to the unit generates data of the second type, and stores the data of the second type in the second table, wherein the one or more processors are further configured to generate the seventh data as the data of the second type based on the first data and the sixth data when the sixth data as the data of the first type is newly stored in the first table, wherein the sixth data is deleted from the first table when a set period of time has passed since the seventh data was stored in the second table or the validity of the sixth data is false. 一種非暫時性電腦可讀記錄媒體,其記錄有用以於電腦中執行如請求項1之方法之程式。 A non-transitory computer-readable recording medium recording a program for executing the method of claim 1 in a computer.
TW112132241A 2023-06-27 2023-08-28 Method and electronic device for managing data related to service and non-transitory computer-readable recording medium TWI877747B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2023-0082919 2023-06-27
KR1020230082919A KR102620225B1 (en) 2023-06-27 2023-06-27 Method and electronic device for managing data related to service

Publications (2)

Publication Number Publication Date
TW202501345A TW202501345A (en) 2025-01-01
TWI877747B true TWI877747B (en) 2025-03-21

Family

ID=89512002

Family Applications (2)

Application Number Title Priority Date Filing Date
TW114106680A TWI905034B (en) 2023-06-27 2023-08-28 Method and electronic device for managing data related to service and non-transitory computer-readable recording medium
TW112132241A TWI877747B (en) 2023-06-27 2023-08-28 Method and electronic device for managing data related to service and non-transitory computer-readable recording medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW114106680A TWI905034B (en) 2023-06-27 2023-08-28 Method and electronic device for managing data related to service and non-transitory computer-readable recording medium

Country Status (3)

Country Link
KR (2) KR102620225B1 (en)
TW (2) TWI905034B (en)
WO (1) WO2025005333A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098430A1 (en) * 2014-10-02 2016-04-07 Fujitsu Limited Data processing method and apparatus
CN106133716A (en) * 2014-01-14 2016-11-16 阿雅斯迪公司 Consensus sequence identification
CN114020735A (en) * 2021-11-10 2022-02-08 中国电信股份有限公司 Security alarm log noise reduction method, device, device and storage medium
TW202305633A (en) * 2021-07-20 2023-02-01 奧義智慧科技股份有限公司 Log categorization device and related computer program product with adaptive clustering function

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10282455B2 (en) * 2015-04-20 2019-05-07 Splunk Inc. Display of data ingestion information based on counting generated events
US10120746B1 (en) * 2016-06-14 2018-11-06 Amazon Technologies, Inc. Throttling system and method
US11113244B1 (en) * 2017-01-30 2021-09-07 A9.Com, Inc. Integrated data pipeline
US11275374B2 (en) * 2018-12-18 2022-03-15 Zoox, Inc. Event-based data logging
US10769588B1 (en) * 2019-10-28 2020-09-08 Coupang, Corp. Systems and methods for generating graphical user interfaces for adaptive delivery scheduling
US11475008B2 (en) * 2020-04-28 2022-10-18 Capital One Services, Llc Systems and methods for monitoring user-defined metrics

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106133716A (en) * 2014-01-14 2016-11-16 阿雅斯迪公司 Consensus sequence identification
US20160098430A1 (en) * 2014-10-02 2016-04-07 Fujitsu Limited Data processing method and apparatus
TW202305633A (en) * 2021-07-20 2023-02-01 奧義智慧科技股份有限公司 Log categorization device and related computer program product with adaptive clustering function
CN114020735A (en) * 2021-11-10 2022-02-08 中国电信股份有限公司 Security alarm log noise reduction method, device, device and storage medium

Also Published As

Publication number Publication date
TW202524380A (en) 2025-06-16
TWI905034B (en) 2025-11-11
KR102620225B1 (en) 2024-01-02
TW202501345A (en) 2025-01-01
KR20250000844A (en) 2025-01-03
WO2025005333A1 (en) 2025-01-02

Similar Documents

Publication Publication Date Title
US9990411B2 (en) Platform for visually configuring a process flow across multiple discrete processes
JP7614216B2 (en) A system for custom validation and scripting for mobile applications
CN102436606B (en) Enterprise resource planning oriented context-aware environment
US20160342955A1 (en) Multi-entity event coordination server and system
US20250315411A1 (en) Issue tracking systems and methods
US10860988B2 (en) Managing data items contributed by a plurality of applications
US11093952B2 (en) Information displaying method, information displaying system, information displaying program, and method for providing information displaying program
US10140667B2 (en) Social customer relationship management opportunity templating
US20210027217A1 (en) System and method for one-click booking of a service event that includes service transaction information
JP2019503015A (en) System and method for event management in an enterprise resource planning system
CN111553749A (en) Activity push strategy configuration method and device
TWI894037B (en) Method for providing information related to rental item and electronic device and non-transitory computer-readable storage medium performing the same
US20150262089A1 (en) System and method for one-click booking of a service event for a user
TWI877747B (en) Method and electronic device for managing data related to service and non-transitory computer-readable recording medium
CN114742024A (en) Service information processing method and device and electronic equipment
JP5978836B2 (en) Workflow extraction program, workflow extraction method, and workflow extraction apparatus
US20160048543A1 (en) System and method for determining governance effectiveness of knowledge management system
TW202445475A (en) Server, user terminal for providing instant message and method therefor
US20170270480A1 (en) Enhancement of product or service by optimizing success factors
JP2013178669A (en) Tabulation device and tabulation program
JP6668650B2 (en) Customer management systems and programs
JP5651873B2 (en) Operation support method and computer
KR20180109143A (en) System for scheduling and recommending a schedule based on a task comprising a plurality of schedules
US20140089056A1 (en) Estimation of effects of process customization
CN115147087B (en) Attendance accounting method, device, computer equipment and storage medium