CN115858551A - LDAP-based memory management method, device, equipment and storage medium - Google Patents

LDAP-based memory management method, device, equipment and storage medium Download PDF

Info

Publication number
CN115858551A
CN115858551A CN202310107308.5A CN202310107308A CN115858551A CN 115858551 A CN115858551 A CN 115858551A CN 202310107308 A CN202310107308 A CN 202310107308A CN 115858551 A CN115858551 A CN 115858551A
Authority
CN
China
Prior art keywords
entry
memory
space
target
data
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.)
Granted
Application number
CN202310107308.5A
Other languages
Chinese (zh)
Other versions
CN115858551B (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.)
Tianjin Nankai University General Data Technologies Co ltd
Original Assignee
Tianjin Nankai University General Data Technologies 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 Tianjin Nankai University General Data Technologies Co ltd filed Critical Tianjin Nankai University General Data Technologies Co ltd
Publication of CN115858551A publication Critical patent/CN115858551A/en
Application granted granted Critical
Publication of CN115858551B publication Critical patent/CN115858551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/24Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

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

Abstract

The embodiment of the application discloses a memory management method, a memory management device, memory management equipment and a memory medium based on LDAP. The method comprises the following steps: determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on the method, an entry space, an entry information space and an index space are divided in the space of the memory, different memory operation strategies and different spaces are set for different operation types, the different spaces are adaptive to the LDAP protocol and matched with the LDAP database, the efficiency of data operation is higher, and the space utilization rate of the memory is also higher.

Description

LDAP-based memory management method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of distributed databases, in particular to a method, a device, equipment and a storage medium for LDAP-based memory management.
Background
With the development and widespread use of cloud computing, higher requirements are put on efficient operation of data, the cloud computing can operate data on the cloud and feed back the result to an application, the result spans multiple networks, and the overall operation time exceeds that of a single computer.
In order to improve the operating speed of data, a memory is used to store data in a large range, the memory is different from a disk space, the disk storage space is only used for storing files, data and the like, the memory also provides space for the running of a program, and the high-speed running of the program is ensured, so that a memory management mechanism becomes a key for memory storage.
Disclosure of Invention
Embodiments of the present application provide a method, an apparatus, a device, and a storage medium for LDAP-based memory management, so as to improve the space utilization of a memory and improve the efficiency of database operations through memory management.
In a first aspect, an embodiment of the present application provides an LDAP-based memory management method, where the method includes:
determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on an LDAP database;
determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy;
and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. In a second aspect, an embodiment of the present application provides an LDAP-based memory management apparatus, where the apparatus includes:
searching whether a target entry index meeting the searching condition in the data operation exists in the index space of the memory;
if yes, searching corresponding target entry information from the entry information space through the target entry index, mapping the target entry information to a target data entry of the entry space, and feeding back the target data entry serving as a query result;
if not, searching a target data item meeting the searching condition in the data operation from a disk of the LDAP database;
extracting the key information of the target data entry to obtain target entry information, and storing the target entry information into an entry information space of the memory;
and adding the target data entry into the entry space of the memory, and adding the target entry index of the target data entry into the entry index space of the memory.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement an LDAP-based memory management method as provided in any embodiment of the present application.
In a fourth aspect, this application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the LDAP-based memory management method as provided in any embodiment of this application.
According to the technical scheme of the embodiment of the application, under the condition that data operation needs to be carried out on an LDAP database, the target operation type to which the data operation belongs is determined; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on this, in this embodiment, the memory space is divided according to the LDAP protocol, the entry space, the entry information space, and the index space are determined, then different memory operation policies are set for different operation types of data operations, so as to provide a memory storage service for the data operations performed on the LDAP database, and different spaces are set, and the different spaces are adapted to the LDAP protocol and are matched with the LDAP database, so that the efficiency of the data operations is higher, and the space utilization rate of the memory is also higher.
Drawings
Fig. 1 is a schematic flowchart of an LDAP-based memory management method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a LDAP-based memory management device according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures associated with the present application are shown in the drawings, not all of them.
Example one
Fig. 1 is a schematic flow diagram of a LDAP-based memory management method according to an embodiment of the present application, which is described in this embodiment from a first platform side. The method can be executed by an LDAP-based memory management device, which can be implemented in hardware and/or software, and can be generally integrated into a computer or other electronic device with data operation capability, and specifically includes the following steps:
step 101, determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database.
In this embodiment, because some programs or data entries need to be cached by using a memory for data operation on the LDAP database, the memory is used for matching data operation on the LDAP database, and provides a memory storage service during the data operation.
In this step, the operation type of the data operation may be various, and in a specific embodiment, the target operation type of the data operation is one of the following operation types: adding operation, deleting operation, changing operation and checking operation.
The adding operation refers to adding data entries into the LDAP database, the deleting operation refers to deleting some data entries from the LDAP database, the changing operation refers to modifying the data entries in the LDAP database, and the searching operation refers to searching the required data entries from the LDAP database.
Specifically, in this step, when determining the target operation type to which the data operation belongs, the target operation type to which the data operation belongs may be determined according to the received data operation instruction, and usually, the data operation instruction may include some key program instructions, and these program instructions are usually fixed, so that the target operation type to which the data operation belongs may be determined by identifying the operation type corresponding to the program instruction.
And 102, determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy.
In this step, the mapping relationship may be embodied in a program instruction, that is, after the target operation type is identified, the mapping relationship may enter a corresponding memory operation program, where the memory operation program is referred to as the target memory operation policy in this step.
Therefore, the process of determining the target memory operation policy corresponding to the target operation type in this step can be implemented by corresponding program codes, such as common IF statements and the like.
And 103, performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy to provide memory storage service when performing data operation on the LDAP database.
It should be noted that the entry space, the entry information space, and the index space of the memory in this step may be spaces pre-partitioned from the memory, and as a mechanism of a Lightweight Directory Access Protocol (LDAP) mainly sets a unit of data as an entry, the entry is to be stored on a server as a data unit, and a unit of a memory management mechanism is also an entry. LDAP optimizes the items to form a tree structure for searching and inquiring, so the LDAP has excellent inquiring performance, and the LDAP is used as a protocol, and simultaneously defines calling rules and calling modes, standardizes the use of a database and provides better guarantee for data security.
Therefore, in order to accommodate LDAP, the present embodiment divides an entry space, an entry information space, and an index space from a memory. The item space is used for storing a data item structure, which can be used as a temporary storage and a provider of the query result, and therefore, the item space needs to occupy a larger space. In order to prevent the memory space from being insufficient, the embodiment may apply a certain amount of memory space as the entry space when the system is started.
In addition, the entry information space is used for storing entry information, the entry information is used for providing a convenient and fast mode for operation, and the speed of using the data entry during calling and operation is reduced due to the fact that the memory space occupied by one data entry is large, so that the key information of the data entry is extracted and stored as the entry information, and the entry information is directly used during subsequent calling and operation, so that the calling and operation speed can be increased.
It should be noted that the key information extracted may be some common attributes of the data items.
The index space in this step is used to store the index information of the data entry, and under the LDAP protocol, the index information of the data entry may be related, so that the present embodiment also sets the index space in the memory to store the corresponding index information, and may provide an index directory for the subsequent search operation.
The purpose of performing memory management in this embodiment is to better divide the memory space, use a smaller memory space, process a larger amount of data, and use a smaller cost to improve the performance of the LDAP database. In order to determine the size of each space, setting the size of the space in a configuration file of an LDAP database, wherein the entry space corresponds to a cachesize attribute in the configuration file, and the unit is an entry; the entry information space corresponds to the dncesize attribute of the configuration file, and the unit is an entry; the index space corresponds to the idlcesize attribute of the configuration file, with the unit being an entry, and examples of configuration files are as follows:
cachesize 1000000 # entries space size 1000000 entries;
the information space size of the dncesize 1000000 # entries is 1000000 entries;
idlcesize 1000000 # index space size is 1000000 entries.
Further, in this step, when the target operation type is an add operation, the process of performing data operation in the entry space, the entry information space, and the index space of the memory based on the target memory operation policy may be:
after data is added to a disk of an LDAP database, the added data items are obtained from a memory; extracting key information of the data entry to obtain entry information, and storing the entry information into an entry information space of a memory; and adding the acquired data entries into an entry space of the memory, and adding entry indexes of the data entries into an entry index space of the memory.
It should be noted that, the process of refining the key information of the data entry is to extract the preset attribute in the data entry as the key information. Because newly added data is generally more likely to be queried, corresponding information of newly added data entries can be stored in an entry space, an entry information space and an index space in the memory, so that the newly added data entries can be directly acquired from the memory during subsequent query, and the query rate is improved to a certain extent.
In addition, in this step, when the target operation type is a delete operation, the process of performing data operation in the entry space, the entry information space, and the index space of the memory based on the target memory operation policy may be:
after deleting data from a disk of an LDAP database, searching whether an entry index to be deleted corresponding to the deleted data exists in an entry index space of a memory; if the data entry exists, deleting the entry index to be deleted in the entry index space, deleting the entry information to be deleted corresponding to the entry index to be deleted in the entry information space of the memory, and deleting the data entry to be deleted corresponding to the entry index to be deleted in the entry information space of the memory.
Since the corresponding data is deleted from the LDAP database, the data is not subsequently queried, that is, the data is not needed, and therefore, in order to save the memory space, the data entry is deleted synchronously in the entry space, the entry information space, and the index space of the memory.
In this step, when the target operation type is a change operation, the process of performing data operation in the entry space, the entry information space, and the index space of the memory based on the target memory operation policy may be:
after the attribute modification is carried out on the data entry to be modified in the disk of the LDAP database, whether an entry index to be modified corresponding to the data entry to be modified exists in an entry index space of a memory is searched; if the data item exists, searching the information of the item to be modified according to the index of the item to be modified, and searching the corresponding data item to be modified from the item space of the memory through the information of the item to be modified; and modifying the attribute of the data entry to be modified in the entry space of the memory.
It should be noted that, because the modification operation involves modifying the attribute, and the refined entry information also consists of the attribute, this embodiment can determine whether the attribute to be modified is the key information in the entry information to be modified; and modifying the key information in the item information to be modified based on the modified attribute under the condition that the attribute to be modified is the key information in the item information to be modified.
In addition, in this step, when the target operation type is a lookup operation, the process of performing data operation in the entry space, the entry information space, and the index space of the memory based on the target memory operation policy may be:
searching whether a target entry index meeting the searching condition in the data operation exists in an index space of a memory; if yes, searching corresponding target entry information from the entry information space through the target entry index, mapping the target entry information to a target data entry of the entry space, and feeding back the target data entry serving as a query result; if not, searching a target data item meeting the searching condition in the data operation from a disk of the LDAP database; extracting key information of the target data entry to obtain target entry information, and storing the target entry information into an entry information space of a memory; and adding the target data entry into the entry space of the memory, and adding the target entry index of the target data entry into the entry index space of the memory.
When the data operation of the search operation is performed, since the previous increment operation and the search operation may pre-store the data entry to be queried by the data operation corresponding to the current search operation in the memory, it may be first queried whether the data entry exists in the memory. If the data exists, the feedback is directly carried out, and the data reading and writing speed of the memory is high, so that the query efficiency is improved to a certain extent.
In addition, after a certain data entry is queried, multiple queries are usually performed on the data entry in a short time, so that if the data does not exist in the memory, after the data entry is found from the LDAP database, the data entry, corresponding entry information and index information can be stored in a corresponding space, thereby facilitating subsequent re-queries.
In the embodiment, under the condition that the data operation needs to be performed on the LDAP database, the target operation type to which the data operation belongs is determined; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on this, in this embodiment, the memory space is divided according to the LDAP protocol, the entry space, the entry information space, and the index space are determined, then different memory operation policies are set for different operation types of data operations, so as to provide a memory storage service for the data operations performed on the LDAP database, and different spaces are set, and the different spaces are adapted to the LDAP protocol and are matched with the LDAP database, so that the efficiency of the data operations is higher, and the space utilization rate of the memory is also higher.
Example two
Fig. 2 is a schematic structural diagram of a LDAP-based memory management device according to a second embodiment of the present application. The LDAP-based memory management device provided by the embodiment of the application can execute the LDAP-based memory management method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. The apparatus may be implemented in a software and/or hardware manner, and as shown in fig. 2, the LDAP-based memory management apparatus specifically includes: a type determining module 201, an operation strategy determining module 202 and a memory operating module 203.
The type determining module is used for determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database;
the operation strategy determining module is used for determining a target memory operation strategy corresponding to the target operation type according to the preset mapping relation between the operation type and the memory operation strategy;
and the memory operation module is used for performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database.
In the technical scheme of the embodiment of the application, under the condition that data operation needs to be carried out on an LDAP database, the target operation type to which the data operation belongs is determined; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on this, in this embodiment, the memory space is divided according to the LDAP protocol, the entry space, the entry information space, and the index space are determined, then different memory operation policies are set for different operation types of data operations, so as to provide a memory storage service for the data operations performed on the LDAP database, and different spaces are set, and the different spaces are adapted to the LDAP protocol and are matched with the LDAP database, so that the efficiency of the data operations is higher, and the space utilization rate of the memory is also higher.
Further, the target operation type of the data operation is one of the following operation types:
adding operation, deleting operation, changing operation and checking operation.
Further, the target operation type is an increase operation;
the memory operation module comprises:
the data entry acquisition unit is used for acquiring the added data entry from the memory after adding data to a disk of the LDAP database;
the first extraction unit is used for extracting the key information of the data entry to obtain entry information and storing the entry information into an entry information space of the memory;
the first adding unit is used for adding the acquired data entry into an entry space of the memory and adding an entry index of the data entry into an entry index space of the memory.
Further, the target operation type is deleting operation;
the memory operation module comprises:
the first searching unit is used for searching whether an entry index to be deleted corresponding to the deleted data exists in an entry index space of the memory after the data is deleted from a disk of the LDAP database;
and the deleting unit is used for deleting the to-be-deleted item index in the item index space, deleting the to-be-deleted item information corresponding to the to-be-deleted item index in the item information space of the memory, and deleting the to-be-deleted data item corresponding to the to-be-deleted item index in the item space of the memory if the to-be-deleted item index exists.
Further, the target operation type is changed operation;
the memory operation module comprises:
the second searching unit is used for searching whether an item index to be modified corresponding to the data item to be modified exists in an item index space of the memory after the attribute modification is carried out on the data item to be modified in the disk of the LDAP database;
the first modification unit is used for searching the information of the item to be modified according to the index of the item to be modified if the first modification unit exists, and searching the corresponding data item to be modified from the item space of the memory through the information of the item to be modified;
and the second modification unit is used for modifying the attribute of the data entry to be modified in the entry space of the memory.
Further, the memory operation module further includes:
the judging unit is used for judging whether the attribute to be modified is the key information in the item information to be modified;
and the third modifying unit is used for modifying the key information in the item information to be modified based on the modified attribute under the condition that the attribute to be modified is the key information in the item information to be modified.
Further, the target operation type is a checking operation;
the memory operation module comprises:
a third searching unit, configured to search, from an index space of the memory, whether a target entry index that meets a search condition in the data operation exists;
the feedback unit is used for searching corresponding target entry information from the entry information space through the target entry index if the target entry information exists, mapping the target entry information to a target data entry of the entry space, and feeding back the target data entry serving as a query result;
the fourth searching unit is used for searching the target data item meeting the searching condition in the data operation from the disk of the LDAP database if the target data item does not exist;
the second refining unit is used for refining the key information of the target data item to obtain target item information and storing the target item information into an item information space of the memory;
and the second adding unit is used for adding the target data entry into the entry space of the memory and adding the target entry index of the target data entry into the entry index space of the memory.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present application, as shown in fig. 3, the electronic device includes a processor 310, a memory 320, an input device 330, and an output device 340; the number of the processors 310 in the electronic device may be one or more, and one processor 310 is taken as an example in fig. 3; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 3.
The memory 320 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the LDAP-based memory management method in the embodiments of the present invention. The processor 310 executes various functional applications of the electronic device and the LDAP-based memory management by executing the software programs, instructions and modules stored in the memory 320, that is, implementing the LDAP-based memory management method described above:
determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database;
determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy;
and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service for the data operation on the LDAP database.
In the technical scheme of the embodiment of the application, under the condition that data operation needs to be carried out on an LDAP database, the target operation type to which the data operation belongs is determined; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on this, in this embodiment, the memory space is divided according to the LDAP protocol, the entry space, the entry information space, and the index space are determined, then different memory operation policies are set for different operation types of data operations, so as to provide a memory storage service for the data operations performed on the LDAP database, and different spaces are set, and the different spaces are adapted to the LDAP protocol and are matched with the LDAP database, so that the efficiency of the data operations is higher, and the space utilization rate of the memory is also higher.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example four
A fourth embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for LDAP-based memory management, the method including:
determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database;
determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy;
and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy to provide memory storage service when performing data operation on the LDAP database.
In the technical scheme of the embodiment of the application, under the condition that data operation needs to be carried out on an LDAP database, the target operation type to which the data operation belongs is determined; determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy; and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database. Based on this, in this embodiment, the memory space is divided according to the LDAP protocol, the entry space, the entry information space, and the index space are determined, then different memory operation policies are set for different operation types of data operations, so as to provide a memory storage service for the data operations performed on the LDAP database, and different spaces are set, and the different spaces are adapted to the LDAP protocol and are matched with the LDAP database, so that the efficiency of the data operations is higher, and the space utilization rate of the memory is also higher.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the LDAP-based memory management method provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present application.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments illustrated herein, and that various obvious changes, rearrangements and substitutions may be made therein by those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method for LDAP-based memory management, said method comprising:
determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on an LDAP database;
determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy;
and performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database.
2. The method of claim 1, wherein the target operation type of the data operation is one of the following operation types:
adding operation, deleting operation, changing operation and checking operation.
3. The method of claim 1, wherein the target operation type is an increase operation;
performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy, including:
after data is added to a disk of the LDAP database, the added data entry is obtained from the memory;
extracting the key information of the data entry to obtain entry information, and storing the entry information into an entry information space of the memory;
and adding the acquired data entry into an entry space of the memory, and adding an entry index of the data entry into an entry index space of the memory.
4. The method of claim 1, wherein the target operation type is a delete operation;
performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy, including:
after data is deleted from a disk of an LDAP database, whether an entry index to be deleted corresponding to the deleted data exists in an entry index space of the memory is searched;
if the data entry exists, deleting the entry index to be deleted in the entry index space, deleting the entry information to be deleted corresponding to the entry index to be deleted in the entry information space of the memory, and deleting the data entry to be deleted corresponding to the entry index to be deleted in the entry space of the memory.
5. The method of claim 1, wherein the target operation type is change operation;
performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy, including:
after attribute modification is carried out on data items to be modified in a disk of an LDAP database, whether an item index to be modified corresponding to the data items to be modified exists in an item index space of a memory is searched;
if yes, searching the information of the item to be modified according to the index of the item to be modified, and searching the corresponding data item to be modified from the item space of the memory through the information of the item to be modified;
and modifying the attribute of the data entry to be modified in the entry space of the memory.
6. The method of claim 5, wherein performing data operations in an entry space, an entry information space, and an index space of the memory based on the target memory operation policy further comprises:
judging whether the attribute to be modified is the key information in the item information to be modified;
and modifying the key information in the item information to be modified based on the modified attribute under the condition that the attribute to be modified is the key information in the item information to be modified.
7. The method of claim 1, wherein the target operation type is a lookup operation;
performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy, including:
searching whether a target entry index meeting the searching condition in the data operation exists in the index space of the memory;
if yes, finding corresponding target entry information from the entry information space through the target entry index, mapping the target entry information to a target data entry of the entry space, and feeding back the target data entry as a query result;
if not, searching a target data item meeting the searching condition in the data operation from a disk of the LDAP database;
extracting the key information of the target data entry to obtain target entry information, and storing the target entry information into an entry information space of the memory;
and adding the target data entry into an entry space of the memory, and adding a target entry index of the target data entry into an entry index space of the memory.
8. An LDAP-based memory management apparatus, the apparatus comprising:
the type determining module is used for determining a target operation type to which the data operation belongs under the condition that the data operation needs to be carried out on the LDAP database;
the operation strategy determining module is used for determining a target memory operation strategy corresponding to the target operation type according to a preset mapping relation between the operation type and the memory operation strategy;
and the memory operation module is used for performing data operation in the entry space, the entry information space and the index space of the memory based on the target memory operation strategy so as to provide memory storage service when performing data operation on the LDAP database.
9. An electronic device, comprising:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the LDAP-based memory management method as recited in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the LDAP-based memory management method according to any one of claims 1 to 7.
CN202310107308.5A 2023-01-31 2023-02-14 Memory management method, device, equipment and storage medium based on LDAP Active CN115858551B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2023100461098 2023-01-31
CN202310046109 2023-01-31

Publications (2)

Publication Number Publication Date
CN115858551A true CN115858551A (en) 2023-03-28
CN115858551B CN115858551B (en) 2023-11-14

Family

ID=85657973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310107308.5A Active CN115858551B (en) 2023-01-31 2023-02-14 Memory management method, device, equipment and storage medium based on LDAP

Country Status (2)

Country Link
CN (1) CN115858551B (en)
WO (1) WO2024159628A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024159628A1 (en) * 2023-01-31 2024-08-08 天津南大通用数据技术股份有限公司 Ldap-based memory management method and apparatus, device, and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482873A (en) * 2008-12-18 2009-07-15 华为技术有限公司 Method and device for data access
US20090182855A1 (en) * 2008-01-14 2009-07-16 Yogesh Vilas Golwalkar Method using a hashing mechanism to select data entries in a directory for use with requested operations
CN102243654A (en) * 2011-06-16 2011-11-16 苏州阔地网络科技有限公司 Method and device for controlling and managing database connections
CN103164490A (en) * 2011-12-19 2013-06-19 北京新媒传信科技有限公司 Method and device for achieving high-efficient storage of data with non-fixed lengths
CN103714080A (en) * 2012-09-29 2014-04-09 北京百度网讯科技有限公司 Spatial index structure tree based method and device for providing results of searching spatial objects
US20150293783A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Scheduling identity manager reconciliation to execute at an optimal time
CN109344159A (en) * 2018-10-15 2019-02-15 北京天融信网络安全技术有限公司 For the lookup method of LDAP, device, electronic equipment and storage medium
CN111046041A (en) * 2019-12-09 2020-04-21 珠海格力电器股份有限公司 Data processing method and device, storage medium and processor
CN111475584A (en) * 2020-06-19 2020-07-31 阿里云计算有限公司 Data processing method, system and device
CN114116720A (en) * 2021-11-25 2022-03-01 上海派拉软件股份有限公司 Online database management method, device, equipment and storage medium
CN115168310A (en) * 2022-06-29 2022-10-11 北京飞讯数码科技有限公司 Log management method, device, medium and system in LDAP system
CN115587097A (en) * 2022-10-17 2023-01-10 长春吉大正元信息技术股份有限公司 Directory node information query method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858551B (en) * 2023-01-31 2023-11-14 天津南大通用数据技术股份有限公司 Memory management method, device, equipment and storage medium based on LDAP

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090182855A1 (en) * 2008-01-14 2009-07-16 Yogesh Vilas Golwalkar Method using a hashing mechanism to select data entries in a directory for use with requested operations
CN101482873A (en) * 2008-12-18 2009-07-15 华为技术有限公司 Method and device for data access
CN102243654A (en) * 2011-06-16 2011-11-16 苏州阔地网络科技有限公司 Method and device for controlling and managing database connections
CN103164490A (en) * 2011-12-19 2013-06-19 北京新媒传信科技有限公司 Method and device for achieving high-efficient storage of data with non-fixed lengths
CN103714080A (en) * 2012-09-29 2014-04-09 北京百度网讯科技有限公司 Spatial index structure tree based method and device for providing results of searching spatial objects
US20150293783A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Scheduling identity manager reconciliation to execute at an optimal time
CN109344159A (en) * 2018-10-15 2019-02-15 北京天融信网络安全技术有限公司 For the lookup method of LDAP, device, electronic equipment and storage medium
CN111046041A (en) * 2019-12-09 2020-04-21 珠海格力电器股份有限公司 Data processing method and device, storage medium and processor
CN111475584A (en) * 2020-06-19 2020-07-31 阿里云计算有限公司 Data processing method, system and device
CN114116720A (en) * 2021-11-25 2022-03-01 上海派拉软件股份有限公司 Online database management method, device, equipment and storage medium
CN115168310A (en) * 2022-06-29 2022-10-11 北京飞讯数码科技有限公司 Log management method, device, medium and system in LDAP system
CN115587097A (en) * 2022-10-17 2023-01-10 长春吉大正元信息技术股份有限公司 Directory node information query method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
许秀云 等: "基于SSM框架的英语口语测评系统研究", 《微型电脑应用》, vol. 36, no. 11 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024159628A1 (en) * 2023-01-31 2024-08-08 天津南大通用数据技术股份有限公司 Ldap-based memory management method and apparatus, device, and storage medium

Also Published As

Publication number Publication date
WO2024159628A1 (en) 2024-08-08
CN115858551B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN108255958B (en) Data query method, device and storage medium
CN109299157B (en) Data export method and device for distributed big single table
CN112800287B (en) Full-text indexing method and system based on graph database
CN109299101B (en) Data retrieval method, device, server and storage medium
CN109766318B (en) File reading method and device
CN110427386B (en) Data processing method, device and computer storage medium
US11755555B2 (en) Storing an ordered associative array of pairs using an append-only storage medium
CN110955704A (en) Data management method, device, equipment and storage medium
CN101963999A (en) Music classified search engine system and music classified search method
CN113553339B (en) Data query method, middleware, electronic device and storage medium
CN115858551B (en) Memory management method, device, equipment and storage medium based on LDAP
CN108154024B (en) Data retrieval method and device and electronic equipment
CN110688201B (en) Log management method and related equipment
CN113849499A (en) Data query method and device, storage medium and electronic device
CN110515979B (en) Data query method, device, equipment and storage medium
CN104636368A (en) Data retrieval method and device and server
CN112306957A (en) Method and device for acquiring index node number, computing equipment and storage medium
CN104536785B (en) Real-time system update method and device
CN114238334A (en) Heterogeneous data encoding method and device, heterogeneous data decoding method and device, computer equipment and storage medium
CN110908996A (en) Data processing method and device
CN107977381B (en) Data configuration method, index management method, related device and computing equipment
CN111819552A (en) Management method and device of access control list
CN113656438A (en) Data query method and device of data tree
CN109104499B (en) Session establishing method, device, equipment and storage medium
CN103891244B (en) A kind of method and device carrying out data storage and search

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