CN110008135B - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN110008135B
CN110008135B CN201810011453.2A CN201810011453A CN110008135B CN 110008135 B CN110008135 B CN 110008135B CN 201810011453 A CN201810011453 A CN 201810011453A CN 110008135 B CN110008135 B CN 110008135B
Authority
CN
China
Prior art keywords
storage area
write
database
target storage
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810011453.2A
Other languages
Chinese (zh)
Other versions
CN110008135A (en
Inventor
费腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201810011453.2A priority Critical patent/CN110008135B/en
Publication of CN110008135A publication Critical patent/CN110008135A/en
Application granted granted Critical
Publication of CN110008135B publication Critical patent/CN110008135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • G06F2212/1024Latency reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/16General purpose computing application
    • G06F2212/163Server or database system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an information processing method, an information processing device and electronic equipment. The information processing method comprises the following steps: dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2; detecting a target storage area in which the obtained content data is modified; acquiring the ratio of the number M to the number N of the target storage areas; and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area. By adopting the technical scheme, the increment write-back method greatly reduces the write-back data quantity, shortens the write-back time, prevents the write-back performance from being influenced by the whole size of the database, and can meet the write-back requirement of high frequency, thereby solving the technical problem of lower write-back performance of the database in the prior art and improving the write-back performance of the database.

Description

Information processing method and device and electronic equipment
Technical Field
The present invention relates to the field of database technologies, and in particular, to an information processing method, an information processing device, and an electronic device.
Background
With the continuous development of internet technology, the more and more the personalized information processing requirements are increased. In order to increase the speed of personalized information processing, a user database is usually maintained for users at a client or a server, for example, an input method usually maintains a user word stock at the client or the server, so that users can input quickly.
The user database has strong pertinence and high use frequency, so that the user database is often loaded into the memory for convenient use in the running process of the corresponding application program. In order to avoid unexpected data loss of the user database, frequent data write-back in the memory is required to be written back to the hard disk, so that the write-back performance of the database is very important. In the prior art, when the database in the memory changes, the whole database is written back into a file, and if the database is larger and the writing back is more frequent, the writing back performance is lower, which leads to the operation of the application program to be blocked.
Disclosure of Invention
The embodiment of the invention provides an information processing method, an information processing device and electronic equipment, which solve the technical problem of lower database write-back performance in the prior art and improve the write-back performance of a database.
In a first aspect, an embodiment of the present application provides an information processing method, including:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
Optionally, the method further comprises:
when the content data in the memory space is modified, the identification of the target storage area where the modified content data is located is modified from a first identification to a second identification;
after the incremental write-back operation is completed, the method further includes:
initializing the identification of the N storage areas as the first identification.
Optionally, detecting the target storage area in which the obtained content data is modified includes:
and detecting the identification of each storage area, and obtaining the storage area identified as the second identification as a target storage area with modified content data.
Optionally, based on the target content data in the target storage area, performing incremental write-back on the database in the memory includes:
and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including:
the dividing unit is used for dividing the memory space for loading the database into N storage areas, wherein N is more than or equal to 2;
a detection unit configured to detect a target storage area in which the obtained content data is modified;
a write-back unit, configured to obtain a ratio of the number M of the target storage areas to the number N of the target storage areas;
and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
Optionally, the apparatus further includes:
the identification unit is used for modifying the identification of the target storage area where the modified content data is located from a first identification to a second identification when the content data in the memory space is modified; after the incremental write-back operation is completed, initializing the identification of the N-block storage area to the first identification.
Optionally, the detection unit is configured to: and detecting the identification of each storage area, and obtaining the storage area identified as the second identification as a target storage area with modified content data.
Optionally, the write-back unit is configured to:
and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
The above technical solutions in the embodiments of the present application at least have the following technical effects:
the embodiment of the application provides an information processing method, which divides a memory space for loading a database into N storage areas; detecting a target storage area in which the obtained content data changes; acquiring the ratio of the number M to the number N of the target storage areas; if the ratio reaches a preset value, triggering incremental write-back operation, and based on target content data in the target storage area, performing incremental write-back on the database in the memory, so that the write-back data volume is greatly reduced, the write-back time is shortened, the write-back performance is not influenced by the whole size of the database, and the write-back requirement of high frequency can be met, thereby solving the technical problem of lower write-back performance of the database in the prior art, and improving the write-back performance of the database.
Drawings
Fig. 1 is a schematic flow chart of an information processing method according to an embodiment of the present application;
fig. 2 is a block diagram of an information processing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the technical scheme provided by the embodiment of the application, the incremental write-back is performed through the database in the memory, so that the data volume of the write-back of the database is reduced, the write-back time is shortened, the write-back performance is not influenced by the whole size of the database, the write-back requirement of high frequency is met, the technical problem that the write-back performance of the database is lower in the prior art is solved, and the write-back performance of the database is improved.
The following describes in detail the main implementation principles of the technical solution of the embodiments of the present application, the specific implementation manner and the corresponding beneficial effects.
Examples
Referring to fig. 1, an embodiment of the present application provides an information processing method, which is applied to write-back of a database. The database can be a personalized database of the user or a common database. The information processing method comprises the following steps:
s110: dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
s120: checking the content data in the N blocks of storage areas to obtain a target storage area with modified content data;
s130: acquiring the ratio of the number M to the number N of the target storage areas;
s140: and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
In the implementation process, when the application program loads the database into the memory of the electronic device, the formats of the database loaded into the memory and the database in the hard disk file are kept the same, so that the database can be written back conveniently. And, after the database is loaded into the memory, S110 is performed to divide the memory space for loading the database into N storage areas, so that the data in each storage area is greatly reduced with respect to the overall data of the database. The embodiment does not limit the specific mode of dividing the memory space, randomly divides the memory space, equally divides the memory space, and divides the memory space in a mode of guaranteeing the integrity of each data. In order to facilitate recording and querying, the memory space of the loaded database is preferably equally divided. The size of each storage area can be 4K or 8K, excessive division can increase the write-back burden and increase the write-back of invalid data, and experiments show that the write-back performance is optimal when the size of each storage area is 4K or 8K.
After S110, S120 is performed to detect that the target storage area in which the obtained content data is modified. The detection of the target storage area may be performed by comparing content data, or may be performed by modifying the identification detection. To reduce the amount of detection effort, each block of storage area may be marked after the storage area is divided for a first identification, e.g. a bit is used to indicate the state of the content data therein, and an initial value of 0 indicates that it has not been modified. When the content data in a certain block storage area is modified, such as deleted, replaced, updated, etc., the identity of the block storage area is modified to a second identity, i.e., a modification identity, such as changing a bit representing the status of its content data from 0 to 1. When the target storage area is obtained through detection, the identification of each storage area can be detected, and the content data in the storage area identified as the second identification is modified, so that the storage area identified as the second identification can be directly used as the target storage area, the detection workload is greatly reduced, and the detection efficiency is improved.
Further, after the target storage area is obtained, S130 is performed to obtain a ratio of the number M of target storage areas to the total number N of storage areas for the cache database. And then, continuing to execute S140, if the ratio of M to N reaches a preset value, triggering incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area. Specifically, in the incremental write-back process, the database data write-back of the non-target storage area in the memory is skipped, and the target data in the target storage area is written back to the position corresponding to the database file in the hard disk.
In the implementation process, the preset value can be set to 8%, 10% and 15% equivalent, and can be specifically set according to the size of each storage area, and the preset value is not suitable to be set too much to avoid increasing the workload of increment write-back each time. It should be noted that, when detecting multiple target storage areas, incremental write-back is triggered, unlike simply increasing the size of each storage area, simply increasing the size of each storage area will write back the same data once, and the small data storage area divides the target data content of multiple target storage areas to write back once, which can effectively reduce write-back of the same data, and simultaneously reduce write-back frequency, and further improve write-back performance. After the write-back is completed in S140, the embodiment further initializes the identifier of the N-block storage area in the memory to the first identifier, and returns to S120 to perform the next incremental write-back.
In the above embodiment, the memory space for loading the database is divided into N storage areas; detecting a target storage area in which the obtained content data changes; based on the target content data in the target storage area, incremental write-back is carried out on the database in the memory, so that the write-back data volume is greatly reduced, the write-back time is shortened, the write-back performance is not influenced by the whole size of the database, the write-back requirement of high frequency can be met, the technical problem of lower write-back performance of the database in the prior art is solved, and the write-back performance of the database is improved. Furthermore, the write-back performance of the database is improved by the incremental write-back method, so that the database can be written back more frequently, and the risk of losing data of the database is greatly reduced.
With respect to the foregoing embodiments, an information processing method is provided, and an information processing apparatus is correspondingly provided in an embodiment of the present application, referring to fig. 2, the apparatus includes:
the dividing unit 21 is used for dividing the memory space for loading the database into N storage areas, wherein N is more than or equal to 2;
a detection unit 22 for detecting a target storage area in which the obtained content data is modified;
a write-back unit 23, configured to obtain a ratio of the number M of the target storage areas to the number N of the target storage areas; and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
As an optional implementation manner, in the incremental write-back process, the write-back unit 23 may skip the write-back of the database data in the non-target storage area in the memory, and write back the target data in the target storage area to a location corresponding to the database file in the hard disk.
As an alternative embodiment, the apparatus may further include: an identification unit 24, configured to modify, when modifying content data in the memory space, an identification of a storage area where the modified content data is located from a first identification to a second identification; after the incremental write-back operation is completed, initializing the identification of the N-block storage area to the first identification. Accordingly, the detection unit 22 detects the identity of each storage area when detecting the acquisition target storage area, and acquires the storage area identified as the second identity as the target storage area.
As an alternative embodiment, the dividing unit 21 may divide the memory space of the loading database according to the size of each storage area 4K or 8K.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 3 is a block diagram illustrating an electronic device 800 for implementing an information processing method according to an exemplary embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 3, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/presentation (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides a presentation interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to present and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for rendering audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication part 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform an information processing method, the method comprising: dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2; detecting a target storage area in which the obtained content data is modified; acquiring the ratio of the number M to the number N of the target storage areas; and if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900 may vary considerably in configuration or performance and may include one or more central processing units (central processing units, CPU) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Wherein the memory 1932 and storage medium 1930 may be transitory or persistent. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, a central processor 1922 may be provided in communication with a storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input presentation interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (8)

1. An information processing method, characterized in that the method comprises:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area, wherein the incremental write-back operation comprises the following steps:
and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
2. The method of claim 1, wherein the method further comprises:
when the content data in the memory space is modified, the identification of the storage area where the modified content data is located is modified from a first identification to a second identification;
after the incremental write-back operation is completed, the method further includes:
initializing the identification of the N storage areas as the first identification.
3. The method of claim 2, wherein detecting the target storage area for which the obtained content data is modified comprises:
and detecting the identification of each storage area, and obtaining the storage area identified as the second identification as a target storage area with modified content data.
4. An information processing apparatus, characterized in that the apparatus comprises:
the dividing unit is used for dividing the memory space of the loading database into N storage areas, wherein N is more than or equal to 2;
a detection unit configured to detect a target storage area in which the obtained content data is modified;
a write-back unit, configured to obtain a ratio of the number M of the target storage areas to the number N of the target storage areas; if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area;
the write-back unit is specifically configured to: and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the identification unit is used for modifying the identification of the storage area where the modified content data is located from a first identification to a second identification when the content data in the memory space is modified; after the incremental write-back operation is completed, initializing the identification of the N-block storage area to the first identification.
6. The apparatus of claim 5, wherein the detection unit is to:
and detecting the identification of each storage area, and obtaining the storage area identified as the second identification as a target storage area with modified content data.
7. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area, wherein the incremental write-back operation comprises the following steps:
and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
8. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor performs the steps of:
dividing a memory space for loading a database into N storage areas, wherein N is more than or equal to 2;
detecting a target storage area in which the obtained content data is modified;
acquiring the ratio of the number M to the number N of the target storage areas;
if the ratio reaches a preset value, triggering an incremental write-back operation, and performing incremental write-back on the database in the memory based on the target content data in the target storage area, wherein the incremental write-back operation comprises the following steps:
and in the incremental write-back process, skipping database data write-back of the non-target storage area in the memory, and writing back the target data in the target storage area to a position corresponding to the database file in the hard disk.
CN201810011453.2A 2018-01-05 2018-01-05 Information processing method and device and electronic equipment Active CN110008135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810011453.2A CN110008135B (en) 2018-01-05 2018-01-05 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810011453.2A CN110008135B (en) 2018-01-05 2018-01-05 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110008135A CN110008135A (en) 2019-07-12
CN110008135B true CN110008135B (en) 2024-01-30

Family

ID=67164576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810011453.2A Active CN110008135B (en) 2018-01-05 2018-01-05 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110008135B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969723B (en) * 2019-11-11 2022-10-11 深圳市元征科技股份有限公司 Data management method, detection device, server, and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414244A (en) * 2007-10-19 2009-04-22 深圳市亚贝电气技术有限公司 A kind of methods, devices and systems of processing data under network environment
CN104035887A (en) * 2014-05-22 2014-09-10 中国科学院计算技术研究所 Block device caching device and method based on simplification configuration system
CN105068768A (en) * 2015-08-26 2015-11-18 华为技术有限公司 Write policy control method and apparatus
CN105205160A (en) * 2015-09-29 2015-12-30 浙江宇视科技有限公司 Data write-in method and device
CN105683961A (en) * 2013-11-06 2016-06-15 华为技术有限公司 Method and system for managing data for performing write back on what-if analysis
CN106790895A (en) * 2015-11-25 2017-05-31 北京搜狗科技发展有限公司 A kind of fault handling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414244A (en) * 2007-10-19 2009-04-22 深圳市亚贝电气技术有限公司 A kind of methods, devices and systems of processing data under network environment
CN105683961A (en) * 2013-11-06 2016-06-15 华为技术有限公司 Method and system for managing data for performing write back on what-if analysis
CN104035887A (en) * 2014-05-22 2014-09-10 中国科学院计算技术研究所 Block device caching device and method based on simplification configuration system
CN105068768A (en) * 2015-08-26 2015-11-18 华为技术有限公司 Write policy control method and apparatus
CN105205160A (en) * 2015-09-29 2015-12-30 浙江宇视科技有限公司 Data write-in method and device
CN106790895A (en) * 2015-11-25 2017-05-31 北京搜狗科技发展有限公司 A kind of fault handling method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Speculative execution exception recovery using write-back suppression;Roger A. Bringmann;《Proceedings of the 26th annual international symposium on Microarchitecture》;全文 *
廉价冗余磁盘阵列(RAID)Cache浅析;刘桂兰,祝天龙,周学仁,分慧珍;电子计算机与外部设备(06);全文 *

Also Published As

Publication number Publication date
CN110008135A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN108762839B (en) Interface display method and device of application program
CN105338409B (en) Network video preloading method and device
EP3128411B1 (en) Interface display method, terminal, computer program and recording medium
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN107729098B (en) User interface display method and device
US20220256230A1 (en) Method and apparatus for video playing
CN106708967B (en) Page display method and device
US11600300B2 (en) Method and device for generating dynamic image
US11397596B2 (en) Method and device for controlling pop-up window, electronic device, and storage medium
CN110008135B (en) Information processing method and device and electronic equipment
CN108628883B (en) Data processing method and device and electronic equipment
CN111092971A (en) Display method and device for displaying
CN115016944A (en) Process access method and device and electronic equipment
CN110941670B (en) Mark state detection method, device, equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN113360051A (en) Search prompting method and device, mobile terminal and storage medium
CN105488131B (en) File opening method and device
CN111221862A (en) Request processing method and device
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN111880696B (en) Encyclopedic-based data processing method and device
CN113157703B (en) Data query method and device, electronic equipment and storage medium
CN111625536B (en) Data access method and device
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN110119471B (en) Method and device for checking consistency of search results
CN112312220B (en) Webpage video playing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant