CN104636260B - A kind of data managing method and system for call charge service - Google Patents
A kind of data managing method and system for call charge service Download PDFInfo
- Publication number
- CN104636260B CN104636260B CN201310544229.7A CN201310544229A CN104636260B CN 104636260 B CN104636260 B CN 104636260B CN 201310544229 A CN201310544229 A CN 201310544229A CN 104636260 B CN104636260 B CN 104636260B
- Authority
- CN
- China
- Prior art keywords
- data
- physical memory
- shared physical
- memory
- shared
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a kind of data managing method and system for call charge service.This method includes:The shared physical memory represented by a memory address is created, and the memory address is mapped directly in the virtual address space of multiple processes;Master data corresponding with the multiple process in memory database and calculating data are loaded onto in the shared physical memory, wherein, the data that calculate are the data obtained after being handled using the wholesale price application of the call charge service or preferential application master data.
Description
Technical field
The present invention relates to data processing field, more particularly to a kind of data managing method and system for call charge service.
Background technology
Memory database is relative to traditional magnetic disk relevant database(Such as Oracle, SQLServer)For.Tradition
Database ensures the lasting storage of data using disk, and memory database is by data memory-resident, all affairs/data
Access pertain only to internal memory.Therefore memory database is relative to traditional relevant database, can reach higher performance, more
Good real-time.
Call charge service backstage includes collection, wholesale price, preferential, daily rental, monthly rent and letter control etc. and applied, corresponding to these business
Process generally requires to interact processing with memory database in the process of implementation, and its data delivered reaches G levels, many of process
Data are stored in memory database, to realize fast throughput.In memory database, the number handled by each process
According to separate, each process independently uses one section of internal memory, it is necessary to larger memory headroom.Moreover, process is respective in execution
, it is necessary to constantly repeatedly access memory database during operation, larger operating burden is caused to processor.In addition, to internal memory
A large amount of repeated accesses of database reduce data-handling efficiency to a certain extent.Therefore, for the internal storage data of one process
Storehouse is not particularly suited for the data system that this data volume of call charge service is larger, process is more and cumbersome.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is that the data processing for call charge service in the prior art is imitated
Rate is relatively low, needs the defects of larger memory headroom and processor heavy load, there is provided a kind of data management for call charge service
Method and system, data-handling efficiency can be improved, save memory headroom, and the burden of processor can be mitigated.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of data management side for call charge service
Method, including:
The shared physical memory represented by a memory address is created, and the memory address is mapped directly into multiple processes
Virtual address space in;
Master data corresponding with the multiple process in memory database and calculating data are loaded onto the shared thing
Manage in internal memory, wherein, the data that calculate are that master data is entered using the wholesale price application of the call charge service or preferential application
The data obtained after row processing.
Wherein, methods described also includes:
The change of the master data is updated in disk in real time;
Periodically the change of the master data in the disk is synchronized in the shared physical memory.
Wherein, methods described also includes:
After wholesale price application and/or preferential application perform, caused calculating data are updated in the shared physics
In depositing;
Periodically by the calculating data backup into disk.
Wherein, methods described also includes:
When occurring abnormal, a shared physical memory for being available for the multiple process to access is re-created;
The master data backed up in disk and calculating data are loaded onto in the shared physical memory.
Wherein, methods described also includes:
After the connection that process obtains with specifying shared physical memory, to accessing the operation for specifying shared physical memory
Lock;
After the master data during process has handled the shared physical memory and calculating data, to accessing the shared thing
Manage the operation unblock of internal memory.
Correspondingly, present invention also offers a kind of data management system for call charge service, including:
Shared physical memory generation module, for creating the shared physical memory represented by a memory address, and by described in
Memory address is mapped directly in the virtual address space of multiple processes;
Load-on module, for master data corresponding with the multiple process in memory database and calculating data to be loaded
Into the shared physical memory, wherein, the data that calculate are to utilize the wholesale price application of the call charge service or preferential application
The data obtained after handling master data.
Wherein, the system also includes:
Master data update module, for the change of the master data to be updated in disk in real time;
Incremental update module, for the change of the master data in the disk periodically to be synchronized into the shared physics
In internal memory.
Wherein, the system also includes:
Calculate data update module, for wholesale price application and/or preferential application perform after, by caused calculating data
It is updated in the shared physical memory;
Data simultaneous module is calculated, for periodically calculating data backup into disk by described.
Wherein, the system also includes:
Abnormal restoring module, for when occurring abnormal, controlling the shared physical memory generation module to re-create one
The shared physical memory for being available for the multiple process to access, and control the update module by the master data backed up in disk and
Data are calculated to be loaded onto in the shared physical memory.
Wherein, the system also includes:
Semaphore locks module, for obtain with specifying shared physical memory in process connection after, to accessing the finger
Surely the operation of shared physical memory locks;
Semaphore unlocked state, for the master data in having handled the shared physical memory in process and calculate data
Afterwards, the operation for accessing the shared physical memory is unlocked.
Implement the embodiment of the present invention, have the advantages that:By creating shared physical memory, and by call charge service
Multiple processes are mapped with the shared physical memory, it is possible to achieve multiple processes are to the storehouse such as master data table data with calculating number
According to the shared of processing result data is waited, the systematicness of data management in call charge service is enhanced, improves the data of call charge service
Treatment effeciency, memory headroom is saved, and alleviate operating burden of the processor in executive process.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart for the data managing method for call charge service that first embodiment of the invention provides;
Fig. 2 is the principle schematic that physical memory is shared in multi-process;
Fig. 3 is the flow chart of the increment updating method for the master data that one embodiment of the invention provides;
Fig. 4 is the flow chart for the data managing method for call charge service that second embodiment of the invention provides;
Fig. 5 is the structural representation for the data management system for call charge service that one embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In call charge service, data buffer storage is used to the storehouse table of each process, coupling is stronger between multiple storehouse tables, can unite
One, which defines a structure form, carries out memory sharing application.The data message for being loaded into shared physical memory mainly has:User
Data, account profile, charging order data, wholesale price Rule Information, preferential rule information, day bill information, letter control Rule Information,
Progressive schedule information, real-time bill information etc..
Refer to Fig. 1, be first embodiment of the invention provide the data managing method for call charge service, this method bag
Include:
S101, the shared physical memory represented by a memory address is created, and the memory address mapped directly to more
In the virtual address space of individual process.Shared physical memory is by IPC(Inter-process communication, between process
Communication)Created by a process and appear in one section of special address sequence in the address space of this process, other
Process same shared physical memory section can be associated with themselves address space, make all processes can
This section of memory address is accessed, is distributed just as this section of internal memory by malloc.If in the shared physics of process write-in
Deposit, these changes can think other process findings for accessing identical shared physical memory immediately.The virtual address of one process
Multiple shared physical memories can be mapped in space, each shared physical memory has the name of oneself(That is keyword key).
Under Unix system, a shared physical memory can be created or obtained using shmget () function, shmctl can be used
() function come realize to share physical memory control.As shown in Fig. 2 the void of each process is shown in each arrow
Intend mapping of the address space to available shared physical memory.Under Unix system, it can be mapped using shmat () function
Shared physical memory, the mapping to sharing physical memory can be cancelled using shmdt () function.
S102, by master data corresponding with the multiple process in memory database and calculate data be loaded onto it is described common
Enjoy in physical memory, wherein, the data that calculate are to basic number using the wholesale price application of the call charge service or preferential application
According to the data obtained after being handled.The master data includes subscriber data, account profile, data is ordered in charging, wholesale price is advised
Then information, preferential rule information, day bill information, letter control Rule Information etc., the calculating data include progressive schedule information, in real time
Bill information etc..It is after being handled using the wholesale price application of the call charge service or preferential application master data to calculate data
Obtained data.Preferably, can be using hash hash datas structure type come data storage, just in shared physical memory
In more rapidly being inquired about, increase newly, change, the operation such as delete.
Data managing method provided in an embodiment of the present invention for call charge service, by creating shared physical memory, and
Multiple processes of call charge service and the shared physical memory are mapped, it is possible to achieve multiple processes are to the storehouse such as master data table
Data enhance the systematicness of data management in call charge service, improve meter with calculating the shared of the processing result data such as data
Take the data-handling efficiency of business, save memory headroom, and alleviate operating burden of the processor in executive process.
In an embodiment of the present invention, because shared physical memory is shared by multiple processes, in order to avoid multiple processes are same
When access shared physical memory so as to cause data inconsistent, it is necessary to set exclusive reference mechanism.Semaphore is Unix operations system
A kind of inter-process communication mechanisms in system, it is a counter, for access of the multi-process to sharing data objects.Semaphore
It is a kind of technology of common inter process synchronization in Unix operating systems, in the present invention it is possible to realized using semaphore to more
Process accesses the synchronization of shared physical memory.Specifically, the exclusive reference mechanism includes:Obtained in process with specifying shared physics
After the connection of internal memory, locked to accessing the operation for specifying shared physical memory;Handled in process in the shared physics
After the master data and calculating data deposited, the operation for accessing the shared physical memory is unlocked.Specifically, letter can be utilized
Number amount realizes locking and unblock to operation.For example, each lock can be realized with two semaphores, one of semaphore record
Currently enterable to read into number of passes, i.e. read signal amount, another semaphore record is currently enterable to write into number of passes, i.e. write signal
Amount.If it is read operation to access operation, first determine whether write signal amount is more than 0, if greater than 0, then enter read operation and wait
State;If less than 0, then read operation is carried out after subtracting 1 by read signal amount, and read signal amount is added 1 after read operation is completed.If visit
Ask that operation is write operation, judge whether read signal amount is that maximum is read into number of passes after write signal amount first is added into 1, if it is, carrying out
Write operation, and write signal amount is subtracted 1 after the write operation is completed;If it is not, then write operation is set to enter wait state.
In call charge service, when master data changes, the change of master data is updated to magnetic in generally real time
, in an embodiment of the present invention, can be regularly because process is not high to the requirement of real-time of master data in the increment list of disk
The change of master data in increment list is synchronized in shared physical memory.The increasing of master data is described below with reference to Fig. 3
Measure update method.
As shown in figure 3, the increment updating method of master data includes:
S301, judge whether incremental update timer is overtime.Generally, incremental update timer can be pre-set, fixed
When device time-out when carry out incremental update.
If step S301 judged result is no, this method flow terminates.
If step S301 judged result is yes, step S302 is performed.S302, obtain with specifying shared physical memory
Connection.
S303, semaphore lock, i.e., specify the operation of shared physical memory to lock to accessing using semaphore.
S304, step increment method increment list data are simultaneously updated in shared physical memory, that is, load the base in disk increment list
The change of the master data loaded is simultaneously synchronized in specified shared physical memory by the change of notebook data.
S305, semaphore unblock, i.e., the operation of shared physical memory is specified to unlock to accessing using semaphore.
S306, disconnect the connection that physical memory is shared with specifying.This method flow terminates.
By this periodically incremental update, shared physical memory can be kept consistent with the data of disk, simultaneously because
It is not required to be updated operation in real time, operating burden can be mitigated.Moreover, in the master data of first time loading of databases table
Afterwards, subsequently only judge which master data has changed, only the data message changed is synchronized in shared physical memory, can be with
Data processing amount is reduced, improves data processing speed.
Different from master data, process is higher to the requirement of real-time for calculating data.Therefore, when wholesale price is applied and/or excellent
After favour application performs, caused calculating data are updated in shared physical memory in real time, in addition, only need to be periodically by institute
Caused calculating data backup is into disk.Specifically, the step calculated in data backup to disk is included:According to calculating number
Data file is calculated according to generation(Such as class account data file and benefit data file);Data file will be calculated by entering library
Write in disk.By the real-time update to calculating data, can be carried out in order to believe that control functional module quick calling calculates data
Letter control.
In another preferred embodiment of the invention, this method also includes:When occurring abnormal, re-create one and be available for
The shared physical memory that the multiple process accesses;The master data backed up in disk and calculating data are loaded onto described shared
In physical memory.Specifically, when reloading calculating data, it is necessary to produced by judging wholesale price using after being performed with preferential application
Calculating data file whether by enter library complete storage, if which calculate data file do not complete storage, it is right
The calculating data answered can not be loaded into shared physical memory accordingly, and it is accurate to shared physical memory data recovery to ensure.
Refer to Fig. 4, be second embodiment of the invention provide the data managing method for call charge service, this method bag
Include:
S401, according to specified key values create corresponding to share physical memory.Wherein, key values can be by designer's hand
Dynamic setting, can also be automatically generated by system.
S402, according to specified key values create corresponding to semaphore.
S403, obtain the connection that physical memory is shared with specifying.
S404, semaphore lock.
S405, master data is loaded into shared physical memory.
S406, semaphore unblock.
S407, judge class account and the application such as preferential perform after caused calculating data file whether storage completely.
If step S407 judged result is no, S407 is repeated.If step S407 judged result is yes, step is performed
S408。
S408, semaphore lock.
S409, calculating data are loaded into shared physical memory.
S410, semaphore unblock.
Connection between S411, disconnection and specified shared physical memory.
The shared data message between physical memory and disk of S412, Timing Processing is synchronous, mainly includes timed increase more
New master data is to shared physical memory.
S413, release, which are specified, shares physical memory corresponding to key values, that is, deletes the shared physical memory specified.
S414, delete and specify semaphore corresponding to key values.
In other embodiments of the invention, can also include:Inquired about, newly sharing the data in physical memory
The operations such as increasing, modification, deletion.Specifically:
For example, the newly-increased operation to data can include:The shared physical memory specified is obtained by GetShm () function;
Connection with specifying shared physical memory is obtained by AttachShm () function;Realize that semaphore adds using SemP () function
Lock;The disk file that data message write-in to be updated is specified is backed up;Realized using Update () function and specify data altogether
Enjoy the renewal in physical memory;Realize that semaphore unlocks using SemV () function;Realized and disconnected by DetachShm () function
Connection to sharing physical memory.
In other embodiments of the invention, the data managing method can also include:Receive the inquiry being manually entered
Internal memory customizing messages order, and Query Result is output in destination file.
The interface function related to the data management of shared physical memory see the table below 1.
Table 1
With exclusive reference mechanism(That is semaphore synchronization mechanism)Related interface function see the table below 2.
Table 2
Numbering | Function name | Prototype | Function |
1 | CreateSem | bool CreateSem(key_t Key,size_t Size) | Create semaphore |
2 | InitSem | bool InitSem(void) | Initializing signal amount |
3 | FreeSem | bool FreeSem(void) | Release semaphore |
4 | CtrlSem | bool CtrlSem(int cmd) | Access operation signal amount |
5 | SemP | SemP(void) | Semaphore P operation |
6 | SemV | void SemV(void) | Semaphore V operation |
Fig. 5 is referred to, is the data management system 500 for call charge service that first embodiment of the invention provides, this is
System 500 includes:
Shared physical memory generation module 510, for creating the shared physical memory represented by a memory address, and by institute
Memory address is stated to map directly in the virtual address space of multiple processes.Shared physical memory is by IPC(Inter-
Process communication, interprocess communication)Created by a process and appear in the address space of this process
In one section of special address sequence, same shared physical memory section can be associated with themselves ground by other processes
In the space of location, all processes is accessed this section of memory address, distributed just as this section of internal memory by malloc.
If the shared physical memory of process write-in, these changes can think that other that access identical shared physical memory enter immediately
Cheng Suojian.Under Unix system, a shared physical memory can be created or obtain using shmget () function, can be with
Control to sharing physical memory is realized using shmctl () function.As shown in Fig. 2 each arrow be shown it is each
Mapping of the virtual address space of individual process to available shared physical memory.Under Unix system, shmat () can be used
Function maps shared physical memory, can cancel the mapping to sharing physical memory using shmdt () function.
Load-on module 520, for by master data corresponding with the multiple process in memory database and calculate data
It is loaded onto in the shared physical memory, wherein, the data that calculate are the wholesale price applications or preferential using the call charge service
Using the data obtained after handling master data.The master data includes subscriber data, account profile, charging order
Data, wholesale price Rule Information, preferential rule information, day bill information, letter control Rule Information etc., the calculating data include accumulative
Table information, real-time bill information etc..It is to basic number using the wholesale price application of the call charge service or preferential application to calculate data
According to the data obtained after being handled.Preferably, in shared physical memory, can using hash hash datas structure type come
Data storage, the operation such as it is easy to more rapidly to be inquired about, increases newly, changes, deleting.
Data management system provided in an embodiment of the present invention for call charge service, by creating shared physical memory, and
Multiple processes of call charge service and the shared physical memory are mapped, it is possible to achieve multiple processes are to the storehouse such as master data table
Data enhance the systematicness of data management in call charge service, improve meter with calculating the shared of the processing result data such as data
Take the data-handling efficiency of business, save memory headroom, and alleviate operating burden of the processor in executive process.
In an embodiment of the present invention, because shared physical memory is shared by multiple processes, in order to avoid multiple processes are same
When access shared physical memory so as to cause data inconsistent, it is necessary to set exclusive reference mechanism.Semaphore is Unix operations system
A kind of inter-process communication mechanisms in system, it is a counter, for access of the multi-process to sharing data objects.Semaphore
It is a kind of technology of common inter process synchronization in Unix operating systems, in the present invention it is possible to realized using semaphore to more
Process accesses the synchronization of shared physical memory.Specifically, system 500 can also include:Semaphore locks module, in process
After obtaining the connection with specifying shared physical memory, locked to accessing the operation for specifying shared physical memory;Semaphore solution
Lock module, it is described common to accessing after the master data in having handled the shared physical memory in process and calculating data
Enjoy the operation unblock of physical memory.Specifically, semaphore can be utilized to realize locking and unblock to operation.For example, each lock
It can be realized with two semaphores, one of semaphore record is currently enterable to be read into number of passes, i.e. read signal amount, another
Semaphore record is currently enterable to write into number of passes, i.e. write signal amount.If it is read operation to access operation, write signal amount is first determined whether
Whether it is more than 0, if greater than 0, then read operation is entered wait state;If less than 0, then read after subtracting 1 by read signal amount
Operation, and read signal amount is added 1 after read operation is completed.Judge to read if it is write operation to access operation, after write signal amount first is added into 1
Whether semaphore is that maximum is read into number of passes, if it is, carrying out write operation, and subtracts 1 by write signal amount after the write operation is completed;Such as
Fruit is no, then write operation is entered wait state.
In data management system 500, master data update module and incremental update module can also be included.Wherein, base
Notebook data update module is used for when master data changes, and the change of master data is updated into the increment of disk in real time
In table.But because process is not high to the requirement of real-time of master data, in an embodiment of the present invention, incremental update module
For regularly the change of the master data in increment list to be synchronized in shared physical memory.By this periodically increment more
Newly, shared physical memory can be kept consistent with the data of disk, simultaneously because being not required to be updated operation in real time, can be subtracted
Light work is born.Moreover, after the master data of first time loading of databases table, subsequently only judge which master data has become
Change, only the data message changed is synchronized in shared physical memory, data processing amount can be reduced, improve data processing speed
Degree.
Different from master data, process is higher to the requirement of real-time for calculating data.Therefore, when wholesale price is applied and/or excellent
After favour application performs, caused calculating data are updated in shared physical memory in real time, in addition, only need to be periodically by institute
Caused calculating data backup is into disk.Specifically, data management system 500 can also include:Calculate data update module,
For after wholesale price application and/or preferential application perform, caused calculating data to be updated in the shared physical memory;
Data simultaneous module is calculated, for periodically calculating data backup into disk by described.Specifically, data simultaneous module is calculated
For:Data file is calculated according to data generation is calculated(Such as class account data file and benefit data file);By being put in storage journey
Sequence will be calculated in data file write-in disk.By to calculate data real-time update, can in order to believe control functional module it is quick
Calculating data are called to carry out letter control.
To share physical memory in master data and calculate data be updated when, it is necessary to semaphore lock module and
Operation is performed semaphore unlocked state plus unblock operation.
In another preferred embodiment of the invention, data management system also includes:Abnormal restoring module, for working as
When now abnormal, control the shared physical memory generation module 510 to re-create one and be available for the shared of the multiple process access
Physical memory, and it is described shared to control the update module 520 to be loaded onto the master data backed up in disk and calculating data
In physical memory.Specifically, update module 520 reload calculate data when, it is necessary to judge wholesale price apply and preferential application
Whether caused calculating data file has completed storage by entering library after execution, if which calculates data file not
Storage is completed, corresponding calculating data can not be loaded into shared physical memory accordingly, ensure to sharing physical memory data
Recover accurate.
Data managing method provided in an embodiment of the present invention and system, by creating shared physical memory and based on shared thing
Reason internal memory is managed to data, it is allowed to which multiple processes share same physical memory space to realize that the information between process is handed over
Change, be characterized in no intermediate link, shared memory pages are directly mapped to the process being in communication with each other each by attachment
Virtual address space in so that multiple processes can directly access the same physical memory page, as accessed oneself
Private room is the same(But substantially it is not privately owned but shared).Therefore this interprocess communication mode is in same meter
The most efficiently method of communication is realized between each process in calculation machine system.All process direct read/write information is provided, without duplication,
Thus conveniently interprocess communication mode, suitable for containing much information and the occasion of frequent operation, be particularly suitable for use in charging industry
Business.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
The above disclosed power for being only a kind of preferred embodiment of the present invention, the present invention can not being limited with this certainly
Sharp scope, one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and weighed according to the present invention
Profit requires made equivalent variations, still falls within and invents covered scope.
Claims (6)
- A kind of 1. data managing method for call charge service, it is characterised in that including:The shared physical memory represented by a memory address is created, and the memory address is mapped directly to the void of multiple processes Intend in address space;Master data corresponding with the multiple process in memory database and calculating data are loaded onto in the shared physics In depositing, wherein, it is described calculate data be using the call charge service wholesale price application or preferential application to master data at The data obtained after reason;Methods described also includes:The change of the master data is updated in disk in real time;Periodically by the change of the master data in the disk It is synchronized in the shared physical memory;AndAfter wholesale price application and/or preferential application perform, caused calculating data are updated in the shared physical memory; Periodically by the calculating data backup into disk.
- 2. it is used for the data managing method of call charge service as claimed in claim 1, it is characterised in that methods described also includes:When occurring abnormal, a shared physical memory for being available for the multiple process to access is re-created;The master data backed up in disk and calculating data are loaded onto in the shared physical memory.
- 3. it is used for the data managing method of call charge service as claimed in claim 1, it is characterised in that methods described also includes:After the connection that process obtains with specifying shared physical memory, add to accessing the operation for specifying shared physical memory Lock;After the master data during process has handled the shared physical memory and calculating data, to accessing in the shared physics The operation unblock deposited.
- A kind of 4. data management system for call charge service, it is characterised in that including:Shared physical memory generation module, for creating the shared physical memory represented by a memory address, and by the internal memory Address is mapped directly in the virtual address space of multiple processes;Load-on module, for master data corresponding with the multiple process in memory database and calculating data to be loaded onto into institute State in shared physical memory, wherein, the data that calculate are to base using the wholesale price application of the call charge service or preferential application The data that notebook data obtains after being handled;Master data update module, for the change of the master data to be updated in disk in real time;Incremental update module, for the change of the master data in the disk periodically to be synchronized into the shared physical memory InData update module is calculated, for after wholesale price application and/or preferential application perform, caused calculating data to be updated Into the shared physical memory;Data simultaneous module is calculated, for periodically calculating data backup into disk by described.
- 5. it is used for the data management system of call charge service as claimed in claim 4, it is characterised in that the system also includes:Abnormal restoring module, for when occurring abnormal, controlling the shared physical memory generation module to re-create one and being available for The shared physical memory that the multiple process accesses, and the update module is controlled by the master data backed up in disk and calculating Data are loaded onto in the shared physical memory.
- 6. it is used for the data management system of call charge service as claimed in claim 4, it is characterised in that the system also includes:Semaphore locks module, for obtain with specifying shared physical memory in process connection after, to accessing described specify altogether The operation for enjoying physical memory locks;Semaphore unlocked state, after the master data in having handled the shared physical memory in process and calculating data, The operation for accessing the shared physical memory is unlocked.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310544229.7A CN104636260B (en) | 2013-11-06 | 2013-11-06 | A kind of data managing method and system for call charge service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310544229.7A CN104636260B (en) | 2013-11-06 | 2013-11-06 | A kind of data managing method and system for call charge service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104636260A CN104636260A (en) | 2015-05-20 |
CN104636260B true CN104636260B (en) | 2018-03-06 |
Family
ID=53215044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310544229.7A Active CN104636260B (en) | 2013-11-06 | 2013-11-06 | A kind of data managing method and system for call charge service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104636260B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881330B (en) * | 2015-05-22 | 2018-08-21 | 大唐移动通信设备有限公司 | A kind of method and apparatus of multi-process shared data |
CN105975407B (en) * | 2016-03-22 | 2020-10-09 | 华为技术有限公司 | Memory address mapping method and device |
CN107479983B (en) * | 2017-07-11 | 2021-04-20 | 核动力运行研究所 | Variable step length multi-program synchronous computing system and method based on time domain control technology |
CN108255624A (en) * | 2018-02-02 | 2018-07-06 | 中国银行股份有限公司 | The processing method and processing unit of a kind of data |
CN112631768A (en) * | 2020-11-23 | 2021-04-09 | 北京思特奇信息技术股份有限公司 | Resource sharing method and system based on asynchronous mechanism |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1740978A (en) * | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for realing sharing internal stored data base and internal stored data base system |
CN1924853A (en) * | 2006-09-14 | 2007-03-07 | 南京中兴软创软件有限公司 | Method for accelerating database searching speed |
CN101901250A (en) * | 2010-06-08 | 2010-12-01 | 中兴通讯股份有限公司 | Memory database and data processing method thereof |
CN102306148A (en) * | 2011-03-18 | 2012-01-04 | 北京神州数码思特奇信息技术股份有限公司 | Share memory database access method |
-
2013
- 2013-11-06 CN CN201310544229.7A patent/CN104636260B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1740978A (en) * | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for realing sharing internal stored data base and internal stored data base system |
CN1924853A (en) * | 2006-09-14 | 2007-03-07 | 南京中兴软创软件有限公司 | Method for accelerating database searching speed |
CN101901250A (en) * | 2010-06-08 | 2010-12-01 | 中兴通讯股份有限公司 | Memory database and data processing method thereof |
CN102306148A (en) * | 2011-03-18 | 2012-01-04 | 北京神州数码思特奇信息技术股份有限公司 | Share memory database access method |
Also Published As
Publication number | Publication date |
---|---|
CN104636260A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104636260B (en) | A kind of data managing method and system for call charge service | |
CN104021145B (en) | The method and apparatus that a kind of mixed service concurrently accesses | |
CN104160381B (en) | Managing method and system for tenant-specific data sets in a multi-tenant environment | |
CN106021016A (en) | Virtual point in time access between snapshots | |
US20200250333A1 (en) | Data management system and data management method | |
CN103646218B (en) | The definition device of data access authority and behavior authority and definition method | |
CN103049482B (en) | The implementation method that in a kind of distributed heterogeneous system, data fusion stores | |
CN106529331A (en) | Multi-tenant data isolation scheme applied to PaaS (Platform-as-a-Service) platform | |
EP3575968A1 (en) | Method and device for synchronizing active transaction lists | |
US20090070444A1 (en) | System and method for managing supply of digital content | |
JP2003520363A (en) | Data maintenance method in a partially replicated database system network | |
CN110019251A (en) | A kind of data processing system, method and apparatus | |
CN101765831A (en) | Database contradiction solution method | |
CN108183947A (en) | Distributed caching method and system | |
CN102043859A (en) | Data updating method and device | |
CN107180102A (en) | The storage method and system of a kind of target characteristic data | |
CN104270412A (en) | Three-level caching method based on Hadoop distributed file system | |
CN106557427A (en) | The EMS memory management process and device of shared drive data base | |
CN105589881A (en) | Data processing method and device | |
CN108052569A (en) | Data bank access method, device, computer readable storage medium and computing device | |
CN102609448A (en) | Multi-user-version hierarchical document mapping method | |
CN101770403B (en) | Method for controlling system configuration concurrency and synchronization on multi-core platform | |
CN108984236A (en) | A kind of implementation method and equipment of virtual management platform | |
CN108846755A (en) | A kind of right management method and device based on intelligent contract | |
CN103365740A (en) | Data cold standby method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |