WO2019104981A1 - 数据访问方法、电子装置及可读存储介质 - Google Patents

数据访问方法、电子装置及可读存储介质 Download PDF

Info

Publication number
WO2019104981A1
WO2019104981A1 PCT/CN2018/089722 CN2018089722W WO2019104981A1 WO 2019104981 A1 WO2019104981 A1 WO 2019104981A1 CN 2018089722 W CN2018089722 W CN 2018089722W WO 2019104981 A1 WO2019104981 A1 WO 2019104981A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
access request
area
physical memory
preset
Prior art date
Application number
PCT/CN2018/089722
Other languages
English (en)
French (fr)
Inventor
王建华
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019104981A1 publication Critical patent/WO2019104981A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a data access method, an electronic device, and a readable storage medium.
  • the purpose of the present application is to provide a data access method, an electronic device, and a readable storage medium, which are intended to improve data access efficiency.
  • a first aspect of the present application provides an electronic device including a memory, a processor, and a memory access system operable on the processor, the data access system The following steps are implemented when executed by the processor:
  • Detecting a load condition of the memory buffer area and the physical memory area set in advance in the memory and determining, according to the detected load condition, a data source corresponding to the access request according to a preset rule, where the data source is the memory buffer area And one of the physical memory areas; wherein the memory buffer area and the physical memory area are stored with preset basic data;
  • data required for the access request is invoked from the determined data source.
  • the second aspect of the present application further provides a data access method, where the data access method includes:
  • Detecting a load condition of the memory buffer area and the physical memory area set in advance in the memory and determining, according to the detected load condition, a data source corresponding to the access request according to a preset rule, where the data source is the memory buffer area And one of the physical memory areas; wherein the memory buffer area and the physical memory area are stored with preset basic data;
  • data required for the access request is invoked from the determined data source.
  • a third aspect of the present application further provides a computer readable storage medium storing a data access system, the data access system being executable by at least one processor, The at least one processor is caused to perform the steps of the data access method as described above.
  • the data access method, system and readable storage medium provided by the present application by pre-setting a memory buffer area and a physical memory area, and storing the basic data required for user access in the memory buffer area and the physical memory area, respectively, are received After the user's access request, the memory buffer or physical memory area can be selected according to the load condition to respond to the user's access request. Since the data response request can be retrieved from the memory buffer area or the physical memory area according to the load condition, when the high-speed frequent data interactive access is performed, the memory buffer area or the physical memory area can be flexibly selected according to the load rule to respond to the high-speed frequent data. Access requests to improve data access efficiency.
  • FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a data access system 10 of the present application
  • FIG. 2 is a schematic diagram of application of an embodiment of a data access system 10 of the present application
  • FIG. 3 is a schematic flowchart diagram of an embodiment of a data access method according to the present application.
  • FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of the data access system 10 of the present application.
  • the data access system 10 is installed and operated in the electronic device 1.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13.
  • Figure 1 shows only the electronic device 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 is at least one type of readable computer storage medium, which in some embodiments may be an internal storage unit of the electronic device 1, such as a hard disk or memory of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc.
  • SMC smart memory card
  • SD Secure Digital
  • flash card etc.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 is used to store application software and various types of data installed in the electronic device 1, such as program codes of the data access system 10.
  • the memory 11 can also be used to temporarily store data that has been output or is about to be output.
  • the processor 12 in some embodiments, may be a central processing unit (CPU), a microprocessor or other data processing chip for running program code or processing data stored in the memory 11, for example The data access system 10 and the like are executed.
  • CPU central processing unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 11, for example
  • the data access system 10 and the like are executed.
  • the display 13 in some embodiments may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display 13 is configured to display information processed in the electronic device 1 and a user interface for displaying visualization, such as a load condition of a memory buffer area and a physical memory area (for example, displayed in a current usage ratio or an idle ratio), and data. Processing results, etc.
  • the components 11-13 of the electronic device 1 communicate with one another via a system bus.
  • the data access system 10 includes at least one computer readable instructions stored in the memory 11, the at least one computer readable instructions being executable by the processor 12 to implement various embodiments of the present application.
  • Step S1 receiving an access request of the user.
  • the data access system receives a data access request sent by the user, for example, receiving a data access request sent by the user through a mobile phone, a tablet computer, a self-service terminal device, and the like, such as receiving the user in a mobile phone, a tablet computer, a self-service terminal device, and the like.
  • Step S2 detecting a load condition of the memory buffer area and the physical memory area set in advance in the memory, and determining, according to the detected load condition, a data source corresponding to the access request according to a preset rule, where the data source is One of a memory buffer area and the physical memory area; wherein the memory buffer area and the physical memory area are stored with preset basic data.
  • the memory buffer area that is, the memory high-speed buffer is set in advance in the memory, and a memory area can be set in advance by the program for buffering some data that needs to be used, for example, opening an address space from the memory or Stack to do the buffering.
  • the physical memory area is the temporary data storage space provided on the memory stick.
  • the preset basic data is loaded into a preset memory buffer and a physical memory area.
  • the preset basic data is basic application data that is changed infrequently, such as basic data that can be used by various office applications.
  • the preset basic data includes, but is not limited to, company organization, architecture, job information, user information, Permission group data and more.
  • the preset basic data is generally called frequently.
  • the preset basic data may be pre-stored in the physical memory area in advance, and the preset basic data is loaded into the preset memory buffer area when the preset application is started; In the implementation manner, the preset basic data may be separately loaded into the preset memory buffer area and the physical memory area when the preset application is started, which is not limited herein.
  • the preset application when running, if the preset basic data is updated, such as the company organization, the structure, the post information, the user information, the permission group data, and the like, the synchronous update is loaded to the preset The corresponding preset basic data in the memory buffer area and the physical memory area.
  • the preset basic data stored in the preset memory buffer area and the physical memory area is completely consistent and updated synchronously. In this way, the subsequent user's data access request can retrieve the latest correct and correct data, whether it is retrieved from the preset memory buffer or physical memory area, to avoid errors.
  • the current load condition of the preset memory buffer area and the physical memory area is detected in real time, such as counting the total number of requests currently processed in the memory buffer area and the physical memory area, and according to the detected memory cache.
  • the data source corresponding to the access request is determined according to a preset rule, where the data source is one of the memory buffer area and the physical memory area.
  • the memory buffer is a data source corresponding to the access request; if the total number of requests currently processed by the memory buffer is greater than the total number of requests currently processed by the physical memory area, that is, the physical memory area is currently compared If it is idle, it is determined that the physical memory area is a data source corresponding to the access request. In this way, the data source corresponding to the access request of the current user can be called according to the load condition of the memory buffer area and the physical memory area, so that the user can obtain data with less current load when performing high-speed and frequent data interactive access. Data is retrieved from the source to make data access more efficient and stable.
  • the current user's access request may be preferentially accessed to the memory buffer, and the current user is only allowed when the number of currently processed requests in the memory buffer exceeds a preset threshold.
  • An access request retrieves data from the physical memory area. Since the data reading speed of the memory buffer area is much faster than the data reading speed of the physical memory area, allowing the user's access request to preferentially access the memory buffer area can greatly improve the user's high-speed and frequent data interactive access. Data access speed and efficiency.
  • the memory buffer area in the memory, when it is necessary to use some data stored in the disk or the physical memory area, it may first determine whether the data to be used is in the set memory buffer area, and then perform Whether to go to the logical judgment of reading data in the disk or physical memory area, thus reducing the number of operations judgments, so that the speed of reading data by the processor is greatly accelerated.
  • step S3 in response to the access request, the data required by the access request is retrieved from the determined data source memory buffer or the physical memory area according to the current user's access request, thereby implementing data interactive access.
  • the memory buffer area and the physical memory area are preset, and the basic data required for the user access is separately stored in the memory buffer area and the physical memory area, and the access request of the user is received.
  • the memory buffer or physical memory area can be selected according to the load condition to respond to the user's access request. Since the data response request can be retrieved from the memory buffer area or the physical memory area according to the load condition, when the high-speed frequent data interactive access is performed, the memory buffer area or the physical memory area can be flexibly selected according to the load rule to respond to the high-speed frequent data. Access requests to improve data access efficiency.
  • FIG. 2 is a schematic diagram of an application of the data access system 10 of the present application.
  • two storage areas are preset in the embodiment: a memory buffer area and a physical memory area.
  • the basic data to be used by the application and the infrequently changed data (such as company organization, architecture, job information, user information, permission group, etc.) are loaded into the memory buffer area, and the physical memory area is loaded.
  • the base itself stores the underlying data of the application and the data that changes infrequently.
  • the underlying data and infrequently changed data (such as the company's organization, architecture, job information, user information, permission groups, etc.) encounter changes, that is, the physical memory area at runtime basic data and not
  • the frequently changed data is updated
  • the data that has been loaded into the memory buffer is updated synchronously to ensure that the basic data stored in the memory buffer and the physical memory area are completely consistent with the infrequently changed data, and are updated synchronously. In this way, whether the client's access request retrieves data from the memory buffer or the physical memory area, the latest correct and correct data can be retrieved to avoid errors.
  • the smart request equalizer determines the data source corresponding to the current client's access request. Specifically, the intelligent request equalizer detects the load condition of the current memory buffer area and the physical memory area in real time, and if the memory buffer area currently processes less requests, that is, the load of the memory buffer area is small, determining the data corresponding to the current client access request.
  • the source is the memory buffer area, that is, the current client's access request preferentially uses the data cached in the memory buffer; if the memory buffer currently processes more requests, and the physical memory area is currently idle, the current client's access request is determined.
  • the corresponding data source is the physical memory area, that is, the current client's access request preferentially uses the data in the physical memory area.
  • the corresponding storage area (memory buffer area/physical memory area) can be called according to the load condition of the data source, so that the client can perform high-speed and frequent data interactive access in the system, and can all be from the data source with less current load. retrieve data to make access more efficient and stable.
  • FIG. 3 is a schematic flowchart of a data access method according to an embodiment of the present application.
  • the data access method includes the following steps:
  • Step S10 receiving an access request of the user.
  • the data access system receives a data access request sent by the user, for example, receiving a data access request sent by the user through a mobile phone, a tablet computer, a self-service terminal device, and the like, such as receiving the user in a mobile phone, a tablet computer, a self-service terminal device, and the like.
  • Step S20 detecting a load condition of the memory buffer area and the physical memory area set in advance in the memory, and determining, according to the detected load condition, a data source corresponding to the access request according to a preset rule, where the data source is the One of a memory buffer area and the physical memory area; wherein the memory buffer area and the physical memory area are stored with preset basic data.
  • the memory buffer area that is, the memory high-speed buffer is set in advance in the memory, and a memory area can be set in advance by the program for buffering some data that needs to be used, for example, opening an address space from the memory or Stack to do the buffering.
  • the physical memory area is the temporary data storage space provided on the memory stick.
  • the preset basic data is loaded into a preset memory buffer and a physical memory area.
  • the preset basic data is basic application data that is changed infrequently, such as basic data that can be used by various office applications.
  • the preset basic data includes, but is not limited to, company organization, architecture, job information, user information, Permission group data and more.
  • the preset basic data is generally called frequently.
  • the preset basic data may be pre-stored in the physical memory area in advance, and the preset basic data is loaded into the preset memory buffer area when the preset application is started; In the implementation manner, the preset basic data may be separately loaded into the preset memory buffer area and the physical memory area when the preset application is started, which is not limited herein.
  • the preset application when running, if the preset basic data is updated, such as the company organization, the structure, the post information, the user information, the permission group data, and the like, the synchronous update is loaded to the preset The corresponding preset basic data in the memory buffer area and the physical memory area.
  • the preset basic data stored in the preset memory buffer area and the physical memory area is completely consistent and updated synchronously. In this way, the subsequent user's data access request can retrieve the latest correct and correct data, whether it is retrieved from the preset memory buffer or physical memory area, to avoid errors.
  • the current load condition of the preset memory buffer area and the physical memory area is detected in real time, such as counting the total number of requests currently processed in the memory buffer area and the physical memory area, and according to the detected memory cache.
  • the data source corresponding to the access request is determined according to a preset rule, where the data source is one of the memory buffer area and the physical memory area.
  • the memory buffer is a data source corresponding to the access request; if the total number of requests currently processed by the memory buffer is greater than the total number of requests currently processed by the physical memory area, that is, the physical memory area is currently compared If it is idle, it is determined that the physical memory area is a data source corresponding to the access request. In this way, the data source corresponding to the access request of the current user can be called according to the load condition of the memory buffer area and the physical memory area, so that the user can obtain data with less current load when performing high-speed and frequent data interactive access. Data is retrieved from the source to make data access more efficient and stable.
  • the current user's access request may be preferentially accessed to the memory buffer, and the current user is only allowed when the number of currently processed requests in the memory buffer exceeds a preset threshold.
  • An access request retrieves data from the physical memory area. Since the data reading speed of the memory buffer area is much faster than the data reading speed of the physical memory area, allowing the user's access request to preferentially access the memory buffer area can greatly improve the user's high-speed and frequent data interactive access. Data access speed and efficiency.
  • the memory buffer area in the memory, when it is necessary to use some data stored in the disk or the physical memory area, it may first determine whether the data to be used is in the set memory buffer area, and then perform Whether to go to the logical judgment of reading data in the disk or physical memory area, thus reducing the number of operations judgments, so that the speed of reading data by the processor is greatly accelerated.
  • Step S30 Respond to the access request, and retrieve data required by the access request from the determined data source memory buffer or the physical memory area according to the current user's access request to implement data interactive access.
  • the memory buffer area and the physical memory area are preset, and the basic data required for the user access is separately stored in the memory buffer area and the physical memory area, and the access request of the user is received.
  • the memory buffer or physical memory area can be selected according to the load condition to respond to the user's access request. Since the data response request can be retrieved from the memory buffer area or the physical memory area according to the load condition, when the high-speed frequent data interactive access is performed, the memory buffer area or the physical memory area can be flexibly selected according to the load rule to respond to the high-speed frequent data. Access requests to improve data access efficiency.
  • two storage areas are preset in the embodiment: a memory buffer area and a physical memory area, and the basic data used by the application when the application starts. Infrequently changed data (such as company organization, architecture, job information, user information, permission groups, etc.) is loaded into the memory buffer.
  • the physical memory area itself stores the underlying data of the application and infrequently changed. data.
  • the underlying data and infrequently changed data (such as the company's organization, architecture, job information, user information, permission groups, etc.) encounter changes, that is, the physical memory area at runtime basic data and not
  • the frequently changed data is updated
  • the data that has been loaded into the memory buffer is updated synchronously to ensure that the basic data stored in the memory buffer and the physical memory area are completely consistent with the infrequently changed data, and are updated synchronously. In this way, whether the client's access request retrieves data from the memory buffer or the physical memory area, the latest correct and correct data can be retrieved to avoid errors.
  • the smart request equalizer determines the data source corresponding to the current client's access request. Specifically, the intelligent request equalizer detects the load condition of the current memory buffer area and the physical memory area in real time, and if the memory buffer area currently processes less requests, that is, the load of the memory buffer area is small, determining the data corresponding to the current client access request.
  • the source is the memory buffer area, that is, the current client's access request preferentially uses the data cached in the memory buffer; if the memory buffer currently processes more requests, and the physical memory area is currently idle, the current client's access request is determined.
  • the corresponding data source is the physical memory area, that is, the current client's access request preferentially uses the data in the physical memory area.
  • the corresponding storage area (memory buffer area/physical memory area) can be called according to the load condition of the data source, so that the client can perform high-speed and frequent data interactive access in the system, and can all be from the data source with less current load. retrieve data to make access more efficient and stable.
  • the present application also provides a computer readable storage medium storing a data access system, the data access system being executable by at least one processor to cause the at least one processor to perform
  • a data access system being executable by at least one processor to cause the at least one processor to perform
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

一种数据访问方法、电子装置及可读存储介质,该方法包括:接收用户的访问请求(S10);检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个(S20);其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据(S30)。可提高数据访问效率。

Description

数据访问方法、电子装置及可读存储介质
优先权申明
本申请基于巴黎公约申明享有2017年11月30日递交的申请号为CN 201711240835.4、名称为“数据访问方法、电子装置及可读存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种数据访问方法、电子装置及可读存储介质。
背景技术
现有技术中在客户访问系统如办公系统时,一般是直接从系统内存中取用数据,在客户需在系统中进行高速频繁地数据交互访问时,请求数据的效率较低,影响用户体验。
发明内容
本申请的目的在于提供一种数据访问方法、电子装置及可读存储介质,旨在提高数据访问效率。
为实现上述目的,本申请第一方面提供一种电子装置,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的数据访问系统,所述数据访问系统被所述处理器执行时实现如下步骤:
接收用户的访问请求;
检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据 源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;
响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据。
此外,为实现上述目的,本申请第二方面还提供一种数据访问方法,所述数据访问方法包括:
接收用户的访问请求;
检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;
响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据。
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有数据访问系统,所述数据访问系统可被至少一个处理器执行,以使所述至少一个处理器执行如上述的数据访问方法的步骤。
本申请提出的数据访问方法、系统及可读存储介质,通过预先设置内存缓存区及物理内存区,并将用户访问时所需的基础数据分别存储至内存缓存区及物理内存区中,在接收到用户的访问请求后,可根据负载情况选择内存缓存区或物理内存区来响应用户的访问请求。由于可根据负载情况来从内存缓存区或物理内存区中调取数据响应请求,在进行高速频繁地数据交互访问时,可根据负载规则灵活选择内 存缓存区或物理内存区来响应高速频繁地数据访问请求,从而提高数据访问效率。
附图说明
图1为本申请数据访问系统10较佳实施例的运行环境示意图;
图2为本申请数据访问系统10一实施例的应用示意图;
图3为本申请数据访问方法一实施例的流程示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
本申请提供一种数据访问系统。请参阅图1,是本申请数据访问系统10较佳实施例的运行环境示意图。
在本实施例中,所述的数据访问系统10安装并运行于电子装置1中。该电子装置1可包括,但不仅限于,存储器11、处理器12及 显示器13。图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
所述存储器11为至少一种类型的可读计算机存储介质,所述存储器11在一些实施例中可以是所述电子装置1的内部存储单元,例如该电子装置1的硬盘或内存。所述存储器11在另一些实施例中也可以是所述电子装置1的外部存储设备,例如所述电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括所述电子装置1的内部存储单元也包括外部存储设备。所述存储器11用于存储安装于所述电子装置1的应用软件及各类数据,例如数据访问系统10的程序代码等。所述存储器11还可以用于暂时地存储已经输出或者将要输出的数据。
所述处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器11中存储的程序代码或处理数据,例如执行所述数据访问系统10等。
所述显示器13在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器13用于显示在所述电子装置1中处理的信息以及用于显示可视化的用户界面,例如内存缓存区及物理内存区的负载情况(例如以当前使用比例或空闲比例显示)、数据处理结果等。所述电子装置1的部件11-13通过系统总线相互通信。
数据访问系统10包括至少一个存储在所述存储器11中的计算机 可读指令,该至少一个计算机可读指令可被所述处理器12执行,以实现本申请各实施例。
其中,上述数据访问系统10被所述处理器12执行时实现如下步骤:
步骤S1,接收用户的访问请求。
本实施例中,数据访问系统接收用户发出的数据访问请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的数据访问请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的数据访问请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的数据访问请求。
步骤S2,检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据。
本实施例中,预先在内存中设定内存缓存区也即内存高速缓冲区,可预先通过程序设置一块内存区域,用于缓存一些需要用到的数据,例如,从内存里面开辟一块地址空间或堆栈来做缓冲。物理内存区即内存条上提供的临时数据存储空间。
具体地,在预设应用程序如用户使用的各种办公类应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中。该预设基础数据为不频繁变更的基础应用数据,如可供多种办公类应用程序使用的基础数据,例如,该预设基础数据包括但不限于公司组织、架构、岗位信息、用户信息、权限组数据等等。用户在进行数据 访问请求时,一般会频繁调用该预设基础数据。本实施例中,可预先将预设基础数据预先存储至物理内存区中,在预设应用程序启动时,再将预设基础数据加载至预先设置的内存缓存区中;在另一种可选的实施方式中,也可在预设应用程序启动时,将预设基础数据分别加载至预先设置的内存缓存区及物理内存区中,在此不做限定。
此外,在预设应用程序运行时,若所述预设基础数据有更新,如公司组织、架构、岗位信息、用户信息、权限组数据等基础数据发生变更,则同步更新已加载至预先设置的内存缓存区及物理内存区中的对应预设基础数据。以保证存储在预先设置的内存缓存区及物理内存区中的预设基础数据完全一致,且同步更新。这样,后续用户的数据访问请求无论是从预先设置的内存缓存区或物理内存区中调取数据,均能调取到最新正确无误的数据,避免出错。
在收到用户的数据访问请求后,实时检测预先设置的内存缓存区及物理内存区的当前负载情况,如分别统计内存缓存区及物理内存区当前处理的总请求数量,并根据检测的内存缓存区及物理内存区的当前负载情况,按照预设规则确定所述访问请求对应的数据源,其中,所述数据源为所述内存缓存区及所述物理内存区中的一个。例如,在一种可选的实施方式中,若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,即所述内存缓存区的负载较小,则确定所述内存缓存区为所述访问请求对应的数据源;若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,即所述物理内存区当前较空闲,则确定所述物理内存区为所述访问请求对应的数据源。这样,能根据所述内存缓存区及物理内存区的负载情况决策调用当前用户的访问请求所对应的数据源,使 用户在进行高速频繁地数据交互访问时,均能从当前负载较小的数据源中调取数据,使数据访问更高效、稳定。
在另一种可选的实施方式中,还可让当前用户的访问请求优先访问所述内存缓存区,只有在所述内存缓存区当前处理的请求数量超过预设阈值时,才使当前用户的访问请求从所述物理内存区中调取数据。由于内存缓存区的数据读取速度要远快于物理内存区的数据读取速度,因此,让用户的访问请求优先访问所述内存缓存区能极大地提高用户在进行高速频繁地数据交互访问时的数据访问速度及效率。本实施例中,通过在内存中设定内存缓存区,当需要使用一些存储在磁盘或物理内存区中的数据时,可以先判断需要使用的数据是否在设定的内存缓存区中,再进行是否要去磁盘或物理内存区中读取数据的逻辑判断,这样一来,减少了运算判断的次数,使处理器读取数据的速度大大加快。
在又一种可选的实施方式中,还可检测所述内存缓存区及物理内存区是否发生异常,若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为当前用户访问请求对应的数据源,以保证用户的访问请求能一直有效地实时获取到数据,使数据访问更加稳定。
步骤S3,响应所述访问请求,根据当前用户的访问请求从确定出的数据源内存缓存区或物理内存区中调取所述访问请求所需的数据,实现数据交互访问。
与现有技术相比,本实施例通过预先设置内存缓存区及物理内存区,并将用户访问时所需的基础数据分别存储至内存缓存区及物理内 存区中,在接收到用户的访问请求后,可根据负载情况选择内存缓存区或物理内存区来响应用户的访问请求。由于可根据负载情况来从内存缓存区或物理内存区中调取数据响应请求,在进行高速频繁地数据交互访问时,可根据负载规则灵活选择内存缓存区或物理内存区来响应高速频繁地数据访问请求,从而提高数据访问效率。
如图2所示,图2为本申请数据访问系统10一实施例的应用示意图;在上述实施例的基础上,本实施例中预先设置两个存储区:内存缓存区、物理内存区,在应用程序启动时,将该应用程序要用到的基础数据和不频繁变更的数据(例如公司的组织、架构、岗位信息、用户信息、权限组等数据)加载到内存缓存区中,物理内存区中本身即存储有该应用程序的基础数据和不频繁变更的数据。在该应用程序运行时,若基础数据和不频繁变更的数据(例如公司的组织、架构、岗位信息、用户信息、权限组等数据)遇到变更,即物理内存区在运行时基础数据和不频繁变更的数据有更新,则会同步更新已加载到内存缓存区中的数据,以保证存储在内存缓存区及物理内存区中的基础数据和不频繁变更的数据完全一致,且同步更新。这样,客户的访问请求无论是从内存缓存区或物理内存区中调取数据,均能调取到最新正确无误的数据,避免出错。
在客户访问请求数据时(如在启动的应用程序上进行数据操作),智能请求均衡器来确定当前客户的访问请求对应的数据源。具体地,智能请求均衡器实时检测当前内存缓存区及物理内存区的负载情况,如果内存缓存区目前处理的请求较少即内存缓存区的负载较小,则确定当前客户的访问请求对应的数据源为内存缓存区,即当前客户的访 问请求优先使用内存缓存区中缓存的数据;如果内存缓存区目前处理的请求较多,物理内存区目前的请求处理较空闲,则确定当前客户的访问请求对应的数据源为物理内存区,即当前客户的访问请求优先使用物理内存区中的数据。这样,能根据数据源的负载情况决策调用对应的存储区(内存缓存区/物理内存区),使得客户在系统中进行高速频繁地数据交互访问时,均能从当前负载较小的数据源中调取数据,使访问更高效、稳定。
如图3所示,图3为本申请数据访问方法一实施例的流程示意图,该数据访问方法包括以下步骤:
步骤S10,接收用户的访问请求。
本实施例中,数据访问系统接收用户发出的数据访问请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的数据访问请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的数据访问请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的数据访问请求。
步骤S20,检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据。
本实施例中,预先在内存中设定内存缓存区也即内存高速缓冲区,可预先通过程序设置一块内存区域,用于缓存一些需要用到的数据,例如,从内存里面开辟一块地址空间或堆栈来做缓冲。物理内存 区即内存条上提供的临时数据存储空间。
具体地,在预设应用程序如用户使用的各种办公类应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中。该预设基础数据为不频繁变更的基础应用数据,如可供多种办公类应用程序使用的基础数据,例如,该预设基础数据包括但不限于公司组织、架构、岗位信息、用户信息、权限组数据等等。用户在进行数据访问请求时,一般会频繁调用该预设基础数据。本实施例中,可预先将预设基础数据预先存储至物理内存区中,在预设应用程序启动时,再将预设基础数据加载至预先设置的内存缓存区中;在另一种可选的实施方式中,也可在预设应用程序启动时,将预设基础数据分别加载至预先设置的内存缓存区及物理内存区中,在此不做限定。
此外,在预设应用程序运行时,若所述预设基础数据有更新,如公司组织、架构、岗位信息、用户信息、权限组数据等基础数据发生变更,则同步更新已加载至预先设置的内存缓存区及物理内存区中的对应预设基础数据。以保证存储在预先设置的内存缓存区及物理内存区中的预设基础数据完全一致,且同步更新。这样,后续用户的数据访问请求无论是从预先设置的内存缓存区或物理内存区中调取数据,均能调取到最新正确无误的数据,避免出错。
在收到用户的数据访问请求后,实时检测预先设置的内存缓存区及物理内存区的当前负载情况,如分别统计内存缓存区及物理内存区当前处理的总请求数量,并根据检测的内存缓存区及物理内存区的当前负载情况,按照预设规则确定所述访问请求对应的数据源,其中,所述数据源为所述内存缓存区及所述物理内存区中的一个。例如,在一种可选的实施方式中,若所述内存缓存区当前处理的总请求数量比 所述物理内存区当前处理的总请求数量少,即所述内存缓存区的负载较小,则确定所述内存缓存区为所述访问请求对应的数据源;若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,即所述物理内存区当前较空闲,则确定所述物理内存区为所述访问请求对应的数据源。这样,能根据所述内存缓存区及物理内存区的负载情况决策调用当前用户的访问请求所对应的数据源,使用户在进行高速频繁地数据交互访问时,均能从当前负载较小的数据源中调取数据,使数据访问更高效、稳定。
在另一种可选的实施方式中,还可让当前用户的访问请求优先访问所述内存缓存区,只有在所述内存缓存区当前处理的请求数量超过预设阈值时,才使当前用户的访问请求从所述物理内存区中调取数据。由于内存缓存区的数据读取速度要远快于物理内存区的数据读取速度,因此,让用户的访问请求优先访问所述内存缓存区能极大地提高用户在进行高速频繁地数据交互访问时的数据访问速度及效率。本实施例中,通过在内存中设定内存缓存区,当需要使用一些存储在磁盘或物理内存区中的数据时,可以先判断需要使用的数据是否在设定的内存缓存区中,再进行是否要去磁盘或物理内存区中读取数据的逻辑判断,这样一来,减少了运算判断的次数,使处理器读取数据的速度大大加快。
在又一种可选的实施方式中,还可检测所述内存缓存区及物理内存区是否发生异常,若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为当前用户访问请求对应的数据源,以保证用户的访问请求能一直有效地实时获取到数据,使数据访问更加稳定。
步骤S30,响应所述访问请求,根据当前用户的访问请求从确定出的数据源内存缓存区或物理内存区中调取所述访问请求所需的数据,实现数据交互访问。
与现有技术相比,本实施例通过预先设置内存缓存区及物理内存区,并将用户访问时所需的基础数据分别存储至内存缓存区及物理内存区中,在接收到用户的访问请求后,可根据负载情况选择内存缓存区或物理内存区来响应用户的访问请求。由于可根据负载情况来从内存缓存区或物理内存区中调取数据响应请求,在进行高速频繁地数据交互访问时,可根据负载规则灵活选择内存缓存区或物理内存区来响应高速频繁地数据访问请求,从而提高数据访问效率。
如图2所示,在上述实施例的基础上,本实施例中预先设置两个存储区:内存缓存区、物理内存区,在应用程序启动时,将该应用程序要用到的基础数据和不频繁变更的数据(例如公司的组织、架构、岗位信息、用户信息、权限组等数据)加载到内存缓存区中,物理内存区中本身即存储有该应用程序的基础数据和不频繁变更的数据。在该应用程序运行时,若基础数据和不频繁变更的数据(例如公司的组织、架构、岗位信息、用户信息、权限组等数据)遇到变更,即物理内存区在运行时基础数据和不频繁变更的数据有更新,则会同步更新已加载到内存缓存区中的数据,以保证存储在内存缓存区及物理内存区中的基础数据和不频繁变更的数据完全一致,且同步更新。这样,客户的访问请求无论是从内存缓存区或物理内存区中调取数据,均能调取到最新正确无误的数据,避免出错。
在客户访问请求数据时(如在启动的应用程序上进行数据操作),智能请求均衡器来确定当前客户的访问请求对应的数据源。具体地,智能请求均衡器实时检测当前内存缓存区及物理内存区的负载情况,如果内存缓存区目前处理的请求较少即内存缓存区的负载较小,则确定当前客户的访问请求对应的数据源为内存缓存区,即当前客户的访问请求优先使用内存缓存区中缓存的数据;如果内存缓存区目前处理的请求较多,物理内存区目前的请求处理较空闲,则确定当前客户的访问请求对应的数据源为物理内存区,即当前客户的访问请求优先使用物理内存区中的数据。这样,能根据数据源的负载情况决策调用对应的存储区(内存缓存区/物理内存区),使得客户在系统中进行高速频繁地数据交互访问时,均能从当前负载较小的数据源中调取数据,使访问更高效、稳定。
此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有数据访问系统,所述数据访问系统可被至少一个处理器执行,以使所述至少一个处理器执行如上述实施例中的数据访问方法的步骤,该数据访问方法的步骤S10、S20、S30等具体实施过程如上文所述,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定 的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上参照附图说明了本申请的优选实施例,并非因此局限本申请的权利范围。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本领域技术人员不脱离本申请的范围和实质,可以有多种变型方案实现本申请,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本申请的技术构思之内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的数据访问系统,所述数据访问系统被所述处理器执行时实现如下步骤:
    接收用户的访问请求;
    检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;
    响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据。
  2. 如权利要求1所述的电子装置,其特征在于,所述预设基础数据为不频繁变更的基础应用数据,包括公司组织、架构、岗位信息、用户信息和/或权限组数据。
  3. 如权利要求1所述的电子装置,其特征在于,所述数据访问系统被所述处理器执行实现所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源时,包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
  4. 如权利要求2所述的电子装置,其特征在于,所述数据访问 系统被所述处理器执行实现所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源时,包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
  5. 如权利要求1所述的电子装置,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为所述访问请求对应的数据源。
  6. 如权利要求2所述的电子装置,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为所述访问请求对应的数据源。
  7. 如权利要求1所述的电子装置,其特征在于,所述数据访问系统被所述处理器执行时还实现如下步骤:
    在预设应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中;
    在预设应用程序运行时,若所述预设基础数据有更新,则同步更新加载至预先设置的内存缓存区及物理内存区中的预设基础数据。
  8. 如权利要求2所述的电子装置,其特征在于,所述数据访问系统被所述处理器执行时还实现如下步骤:
    在预设应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中;
    在预设应用程序运行时,若所述预设基础数据有更新,则同步更新加载至预先设置的内存缓存区及物理内存区中的预设基础数据。
  9. 一种数据访问方法,其特征在于,所述数据访问方法包括:
    接收用户的访问请求;
    检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;
    响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据。
  10. 如权利要求9所述的数据访问方法,其特征在于,所述预设基础数据为不频繁变更的基础应用数据,包括公司组织、架构、岗位信息、用户信息和/或权限组数据。
  11. 如权利要求9所述的数据访问方法,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当 前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
  12. 如权利要求10所述的数据访问方法,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
  13. 如权利要求9所述的数据访问方法,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为所述访问请求对应的数据源。
  14. 如权利要求10所述的数据访问方法,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若检测出所述内存缓存区及所述物理内存区中的其中一个发生异常,则将所述内存缓存区及所述物理内存区中未发生异常的作为所述访问请求对应的数据源。
  15. 如权利要求9所述的数据访问方法,其特征在于,该方法还 包括:
    在预设应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中;
    在预设应用程序运行时,若所述预设基础数据有更新,则同步更新加载至预先设置的内存缓存区及物理内存区中的预设基础数据。
  16. 如权利要求10所述的数据访问方法,其特征在于,该方法还包括:
    在预设应用程序启动时,将预设基础数据加载至预先设置的内存缓存区及物理内存区中;
    在预设应用程序运行时,若所述预设基础数据有更新,则同步更新加载至预先设置的内存缓存区及物理内存区中的预设基础数据。
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有数据访问系统,所述数据访问系统被处理器执行时实现如下步骤:
    接收用户的访问请求;
    检测预先在内存中设定的内存缓存区及物理内存区的负载情况,并根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源,所述数据源为所述内存缓存区及所述物理内存区中的一个;其中,所述内存缓存区及所述物理内存区中均存储有预设基础数据;
    响应所述访问请求,从确定出的数据源中调用所述访问请求所需的数据。
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述预设基础数据为不频繁变更的基础应用数据,包括公司组织、架构、岗位信息、用户信息和/或权限组数据。
  19. 如权利要求17所述的计算机可读存储介质,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
  20. 如权利要求18所述的计算机可读存储介质,其特征在于,所述根据检测的负载情况,按照预设规则确定所述访问请求对应的数据源包括:
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量少,则确定所述内存缓存区为所述访问请求对应的数据源;
    若所述内存缓存区当前处理的总请求数量比所述物理内存区当前处理的总请求数量多,则确定所述物理内存区为所述访问请求对应的数据源。
PCT/CN2018/089722 2017-11-30 2018-06-03 数据访问方法、电子装置及可读存储介质 WO2019104981A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711240835.4A CN108255417B (zh) 2017-11-30 2017-11-30 数据访问方法、电子装置及可读存储介质
CN201711240835.4 2017-11-30

Publications (1)

Publication Number Publication Date
WO2019104981A1 true WO2019104981A1 (zh) 2019-06-06

Family

ID=62722060

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089722 WO2019104981A1 (zh) 2017-11-30 2018-06-03 数据访问方法、电子装置及可读存储介质

Country Status (2)

Country Link
CN (1) CN108255417B (zh)
WO (1) WO2019104981A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444024B (zh) * 2020-04-13 2024-04-12 维沃移动通信有限公司 请求响应方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546782A (zh) * 2011-12-28 2012-07-04 北京奇虎科技有限公司 一种分布式系统及其数据操作方法
CN103455283A (zh) * 2013-08-19 2013-12-18 华中科技大学 一种混合存储系统
CN104780190A (zh) * 2014-01-13 2015-07-15 北京兆维电子(集团)有限责任公司 数据读写控制方法及装置
CN105183670A (zh) * 2015-10-27 2015-12-23 北京百度网讯科技有限公司 用于分布式缓存系统的数据处理方法和装置
CN106445411A (zh) * 2016-09-13 2017-02-22 乐视控股(北京)有限公司 一种数据读取方法、装置及分布式存储系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576918B (zh) * 2009-06-19 2012-11-28 用友软件股份有限公司 具备负载均衡功能的数据缓存系统
CN103207841B (zh) * 2013-03-06 2016-01-20 青岛海信传媒网络技术有限公司 基于键值对缓存的数据读写方法及装置
CN105279103A (zh) * 2015-09-29 2016-01-27 浪潮集团有限公司 一种数据管理方法及装置
CN106559468A (zh) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 一种访问数据的方法
JP6680978B2 (ja) * 2016-04-15 2020-04-15 富士通株式会社 演算処理装置及び演算処理装置の制御方法
CN106991059B (zh) * 2017-03-15 2019-12-13 湖北盛天网络技术股份有限公司 对数据源的访问控制方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546782A (zh) * 2011-12-28 2012-07-04 北京奇虎科技有限公司 一种分布式系统及其数据操作方法
CN103455283A (zh) * 2013-08-19 2013-12-18 华中科技大学 一种混合存储系统
CN104780190A (zh) * 2014-01-13 2015-07-15 北京兆维电子(集团)有限责任公司 数据读写控制方法及装置
CN105183670A (zh) * 2015-10-27 2015-12-23 北京百度网讯科技有限公司 用于分布式缓存系统的数据处理方法和装置
CN106445411A (zh) * 2016-09-13 2017-02-22 乐视控股(北京)有限公司 一种数据读取方法、装置及分布式存储系统

Also Published As

Publication number Publication date
CN108255417B (zh) 2020-11-24
CN108255417A (zh) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2019114128A1 (zh) 区块链事务区块处理方法、电子装置及可读存储介质
WO2019153592A1 (zh) 用户权限数据管理装置、方法及计算机可读存储介质
WO2019140828A1 (zh) 电子装置、分布式系统日志查询方法及存储介质
CN111400308B (zh) 缓存数据的处理方法、电子装置及可读存储介质
WO2019062182A1 (zh) 数据同步装置、方法及计算机可读存储介质
CN110865888A (zh) 一种资源加载方法、装置、服务器及存储介质
CN107729559B (zh) 数据库读写异步访问的方法、系统、设备及存储介质
WO2019179027A1 (zh) 电子装置、防火墙开通验证方法、系统及存储介质
US20130138934A1 (en) Loading configuration information
US20120042307A1 (en) System and method for creating memory interface of computing device
US9178746B2 (en) Browser-based fetch of external libraries
WO2019136812A1 (zh) 电子装置、数据调用日志生成及查询方法及存储介质
WO2019205365A1 (zh) 加载dom节点数据的方法、装置、计算机设备及存储介质
US20180314547A1 (en) Boosting User Mode Thread Priorities To Resolve Priority Inversions
WO2021114877A1 (zh) 缺失号码检测方法、装置、电子设备及存储介质
CN111176850B (zh) 一种数据池的构建方法、装置、服务器及介质
WO2019140829A1 (zh) 电子装置、应用升级版本发布的方法及存储介质
CN112100092B (zh) 一种信息缓存方法、装置、设备及介质
US10177795B1 (en) Cache index mapping
WO2019169771A1 (zh) 电子装置、访问指令信息获取方法及存储介质
CN109062602B (zh) 一种针对应用程序的数据处理方法、装置及电子设备
WO2020207008A1 (zh) 一种数据验证方法、装置、电子设备及存储介质
US11250092B2 (en) Managing multi-dimensional array of data definitions
CN108763524B (zh) 电子装置、聊天数据处理方法和计算机可读存储介质
WO2019104981A1 (zh) 数据访问方法、电子装置及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18884501

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18884501

Country of ref document: EP

Kind code of ref document: A1