CN104317958B - A kind of real-time data processing method and system - Google Patents
A kind of real-time data processing method and system Download PDFInfo
- Publication number
- CN104317958B CN104317958B CN201410645385.7A CN201410645385A CN104317958B CN 104317958 B CN104317958 B CN 104317958B CN 201410645385 A CN201410645385 A CN 201410645385A CN 104317958 B CN104317958 B CN 104317958B
- Authority
- CN
- China
- Prior art keywords
- data
- time threshold
- persistence
- time
- queue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 230000002688 persistence Effects 0.000 claims abstract description 141
- 238000006116 polymerization reaction Methods 0.000 claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000003860 storage Methods 0.000 claims description 23
- 238000000034 method Methods 0.000 claims description 15
- 238000007689 inspection Methods 0.000 claims description 13
- 230000001351 cycling effect Effects 0.000 claims description 6
- 238000013500 data storage Methods 0.000 claims description 6
- 238000002474 experimental method Methods 0.000 claims description 4
- 230000002045 lasting effect Effects 0.000 claims description 4
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 7
- 230000002411 adverse Effects 0.000 abstract description 2
- 230000008094 contradictory effect Effects 0.000 abstract 1
- 238000012360 testing method Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 208000000058 Anaplasia Diseases 0.000 description 1
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24553—Query execution of query operations
- G06F16/24554—Unary operations; Data partitioning operations
- G06F16/24556—Aggregation; Duplicate elimination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
- G06F16/24578—Query processing with adaptation to user needs using ranking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (8)
- A kind of 1. real-time data processing method, it is characterised in that including:The data are simultaneously put into queue by real-time reception data;Circulation reads the data in the queue and the data of reading is put into caching;Whether the time for judging to read data from the queue exceedes default time threshold, if it is, by the caching In data polymerize, and by the data persistence after polymerization;Wherein, it is described judgement from the queue read data time whether exceed default time threshold, if, then will Data in the caching are polymerize and are included the data persistence after polymerization:The current time for starting the cycle over data in the reading queue is arranged to very first time T1 and recorded;When taking out a data from the queue every time and being put into the caching, judgement is put into corresponding during the caching work as Whether the time difference between preceding time and T1 exceedes the time threshold, if it exceeds the time threshold, then jump out and read institute The circulation of data in queue is stated, the data in caching are polymerize, and by the data persistence after polymerization;If not less than institute Time threshold is stated, then continues cycling through the operation for carrying out that lower a data is read from the queue.
- 2. the method as described in claim 1, it is characterised in that methods described also includes:When according to the minimum update cycle T2 of the polymerization result of setting and allowing the minimum interval T3 of persistence to set described Between threshold value;Wherein, the time threshold is less than or equal to T2, and is more than or equal to T3.
- 3. method as claimed in claim 2, it is characterised in that minimum update cycle T2 of the polymerization result according to setting The time threshold is set to include with the minimum interval T3 of permission persistence:The time threshold is respectively set to very first time threshold value and the second time threshold, and carries out the lasting of the data Change is handled;Wherein, the value of very first time threshold value is T2, and the value of the second time threshold is the half of very first time threshold value;It is to obtain the first data persistence result that the time threshold is very first time threshold value and the time threshold respectively The second data persistence result during two time thresholds, and judge that the first data persistence result and second data are held Whether longization result all meets default persistence inspection policies;The data persistence result includes:Extent of polymerization and storage Line number;If it is, the value of the second time threshold is assigned into very first time threshold value, and the value of the second time threshold is arranged to new Very first time threshold value half, the persistence for carrying out data handles and detects data persistence result, circulates execution according to this and sets Put very first time threshold value and the second time threshold and carry out the persistence processing of the data, until judging that first data are held When longization result and the second data persistence result not all meet default persistence inspection policies, then jump out this execution and set Put very first time threshold value and the second time threshold and carry out the circulation of the persistence processing of the data, determine the time threshold For very first time threshold value now;If it is not, then determine that the time threshold is T2.
- 4. the method as described in claim 1, it is characterised in that the data by the caching are polymerize and will be poly- Data persistence after conjunction includes:Data in caching are polymerize according to different dimensions, by the data aggregate with identical dimensional into a data, And by the data storage after the completion of polymerization in database or file.
- A kind of 5. real-time data processing system, it is characterised in that including:Data receipt unit, it is put into for real-time reception data and by the data in queue;Data buffer storage unit, for circulating the data read in the queue and the data of reading being put into caching;Whether persistence unit, the time for judging to read data from the queue exceed default time threshold, if It is then to be polymerize the data in the caching, and by the data persistence after polymerization;Wherein, the data buffer storage unit includes digital independent record sub module, is read for that will start the cycle in the queue The current time of data is arranged to very first time T1 and recorded;The persistence unit includes data aggregate submodule, for being taken in each data buffer storage unit from the queue When going out a data and being put into the caching, time difference when judging to be put into the caching between corresponding current time and T1 is It is no to exceed the time threshold, if it exceeds the time threshold, then jump out the circulation for reading data in the queue, will cache In data polymerize, and by the data persistence after polymerization, if not less than the time threshold, the data buffer storage Unit continues cycling through the operation for carrying out that lower a data is read from the queue.
- 6. system as claimed in claim 5, it is characterised in that also include:Time threshold setup unit, for the polymerization result according to setting minimum update cycle T2 and allow persistence most Small time interval T3 sets the time threshold;Wherein, the time threshold is less than or equal to T2, and is more than or equal to T3.
- 7. system as claimed in claim 6, it is characterised in that:The time threshold setup unit includes:Threshold setting module is tested, for the time threshold to be respectively set into very first time threshold value and the second time threshold Value, and carry out the persistence processing of the data;Wherein, the value of very first time threshold value is T2, and the value of the second time threshold is the The half of one time threshold;Persistence tentative module, for obtaining the first data persistence result that the time threshold is very first time threshold value respectively The second data persistence result when with the time threshold being the second time threshold, and judge the first data persistence knot Whether fruit and the second data persistence result all meet default persistence inspection policies;If it is, the experiment threshold The value of second time threshold is assigned to very first time threshold value by value setup unit, and the value of the second time threshold is arranged into new The half of one time threshold, the persistence for carrying out data handle and detect data persistence result, and circulation, which performs, according to this sets the One time threshold and the second time threshold and the persistence processing for carrying out the data, until judging first data persistence When as a result not all meeting default persistence inspection policies with the second data persistence result, then jump out this and perform and set the One time threshold and the second time threshold and the circulation for carrying out the persistence processing of the data;It is this to determine the time threshold When very first time threshold value;If it is not, then determine that the time threshold is T2.
- 8. the system as described in claim 5 to 7 any one, it is characterised in that:The persistence unit includes persistently processing submodule, for the data in caching to be gathered according to different dimensions Close, by the data aggregate with identical dimensional into a data, and by the data storage after the completion of polymerization in database or file In.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410645385.7A CN104317958B (en) | 2014-11-12 | 2014-11-12 | A kind of real-time data processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410645385.7A CN104317958B (en) | 2014-11-12 | 2014-11-12 | A kind of real-time data processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317958A CN104317958A (en) | 2015-01-28 |
CN104317958B true CN104317958B (en) | 2018-01-16 |
Family
ID=52373190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410645385.7A Active CN104317958B (en) | 2014-11-12 | 2014-11-12 | A kind of real-time data processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317958B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294444B (en) * | 2015-05-27 | 2020-02-18 | 阿里巴巴集团控股有限公司 | Data processing method and equipment |
CN106815274B (en) * | 2015-12-02 | 2022-02-18 | 中兴通讯股份有限公司 | Hadoop-based log data mining method and system |
CN106911589B (en) | 2015-12-22 | 2020-04-24 | 阿里巴巴集团控股有限公司 | Data processing method and equipment |
CN108063746B (en) * | 2016-11-08 | 2020-05-15 | 北京国双科技有限公司 | Data processing method, client, server and system |
CN108268523B (en) * | 2016-12-30 | 2021-06-22 | 北京国双科技有限公司 | Database aggregation processing method and device |
CN108664322A (en) * | 2017-03-29 | 2018-10-16 | 广东神马搜索科技有限公司 | Data processing method and system |
CN109117432A (en) * | 2017-06-22 | 2019-01-01 | 北京京东尚科信息技术有限公司 | A kind of method and device obtaining data |
CN107589907B (en) * | 2017-08-10 | 2019-12-13 | 深圳壹账通智能科技有限公司 | Data processing method, electronic device and computer readable storage medium |
CN110955654B (en) * | 2018-09-26 | 2023-10-31 | 北京国双科技有限公司 | Multi-dimensional index calculation method and device |
CN109508244B (en) * | 2018-10-18 | 2021-03-12 | 北京新唐思创教育科技有限公司 | Data processing method and computer readable medium |
CN110297602B (en) * | 2019-06-14 | 2023-03-07 | 北京奇艺世纪科技有限公司 | Real-time data processing method and device |
CN111026746B (en) * | 2019-10-16 | 2023-07-07 | 中国平安财产保险股份有限公司 | Method, device, computer equipment and storage medium for calling multi-channel data |
CN110837511B (en) * | 2019-11-15 | 2022-08-23 | 金蝶软件(中国)有限公司 | Data processing method, system and related equipment |
CN113312434A (en) * | 2021-07-29 | 2021-08-27 | 北京快立方科技有限公司 | Pre-polymerization treatment method for massive structured data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894119A (en) * | 2008-10-20 | 2010-11-24 | 亚马逊技术股份有限公司 | Mass data storage system for monitoring |
CN102291243A (en) * | 2011-09-09 | 2011-12-21 | 中兴通讯股份有限公司 | Service processing server, system and method |
CN102760101A (en) * | 2012-05-22 | 2012-10-31 | 中国科学院计算技术研究所 | SSD-based (Solid State Disk) cache management method and system |
CN103020175A (en) * | 2012-11-28 | 2013-04-03 | 深圳市华为技术软件有限公司 | Method and device for acquiring aggregated data |
-
2014
- 2014-11-12 CN CN201410645385.7A patent/CN104317958B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894119A (en) * | 2008-10-20 | 2010-11-24 | 亚马逊技术股份有限公司 | Mass data storage system for monitoring |
CN102291243A (en) * | 2011-09-09 | 2011-12-21 | 中兴通讯股份有限公司 | Service processing server, system and method |
CN102760101A (en) * | 2012-05-22 | 2012-10-31 | 中国科学院计算技术研究所 | SSD-based (Solid State Disk) cache management method and system |
CN103020175A (en) * | 2012-11-28 | 2013-04-03 | 深圳市华为技术软件有限公司 | Method and device for acquiring aggregated data |
Also Published As
Publication number | Publication date |
---|---|
CN104317958A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317958B (en) | A kind of real-time data processing method and system | |
CN107864071B (en) | Active safety-oriented dynamic data acquisition method, device and system | |
US7970755B2 (en) | Test execution of user SQL in database server code | |
CN108089814B (en) | Data storage method and device | |
CN106528418B (en) | A kind of test method and device | |
CN105610654B (en) | Server, and method and system for policy online testing | |
JP6857598B2 (en) | Coverage test support device and coverage test support method | |
CN107122126B (en) | Data migration method, device and system | |
JP7335430B2 (en) | AUTOMATIC MODELING METHOD AND DEVICE FOR TARGET DETECTION MODEL | |
CN110601900A (en) | Network fault early warning method and device | |
CN106155646B (en) | Method and device for limiting external application program to call service | |
CN106131641A (en) | A kind of barrage control method, system and Android intelligent television | |
CN109882834A (en) | The operation data monitoring method and device of boiler plant | |
CN104063307A (en) | Software testing method and system | |
CN107241650A (en) | A kind of method of quick positioning playing Caton phenomenon reason | |
CN107526551A (en) | A kind of I/O request processing method, device and the equipment of CPU multinuclears | |
CN105094742B (en) | A kind of method and apparatus for writing data | |
CN109189673B (en) | Software test scheme, and method and device for determining test cases | |
CN102546235A (en) | Performance diagnosis method and system of web-oriented application under cloud computing environment | |
CN106681837A (en) | Data sheet based data eliminating method and device | |
CN116028930B (en) | Defense detection method and system for energy data in Internet of things | |
CN106484539A (en) | A kind of determination method of processor cache characteristic | |
CN106933750A (en) | For data in multi-level buffer and the verification method and device of state | |
CN113642667B (en) | Picture enhancement strategy determination method and device, electronic equipment and storage medium | |
CN109117091A (en) | A kind of SSD equipment mount point acquisition methods and relevant apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Method and system for processing data in real time Effective date of registration: 20190531 Granted publication date: 20180116 Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd. Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Registration number: 2019990000503 |
|
PP01 | Preservation of patent right |
Effective date of registration: 20240604 Granted publication date: 20180116 |