Unlock instant, AI-driven research and patent intelligence for your innovation.

An RBAC Optimization Algorithm Based on Multiplication Bitmap

An optimization algorithm and bitmap technology, applied in structured data retrieval, database indexing, database design/maintenance, etc., can solve the problems of large storage space, cumbersome expansion operations, and low query efficiency, and achieve small storage space and improved Query efficiency, the effect of simplifying query logic

Active Publication Date: 2022-07-01
中建电子商务有限责任公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) Large storage space: In the traditional method, a role-permission relationship uses a table record, and each role-permission relationship record occupies about 64 bits (role number 32 bits + permission number 32 bits), and each role-permission relationship record Both need to be stored, and a large amount of redundant data needs to be saved;
[0004] (2) The expansion operation is cumbersome: in the traditional method, if new permissions are added, a large number of role permission relationship records need to be initialized, and the operation is cumbersome;
[0005] (3) In the traditional method, when querying the permissions owned by a role, all permissions and role relationship records need to be filtered, and the query efficiency is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An RBAC Optimization Algorithm Based on Multiplication Bitmap
  • An RBAC Optimization Algorithm Based on Multiplication Bitmap
  • An RBAC Optimization Algorithm Based on Multiplication Bitmap

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Taking role number 1 as an example, the set of permission numbers it has is [1, 3, 5, 9, 13], that is, role number 1 has permission number 1, permission number 3, permission number 5, permission number 9, and permission number 13. authority;

[0044] For each permission numbered x in the permission number set, divide (x-1) by m and round down to obtain the multiplication factor n of the permission number x, and divide (x-1) by m to get the permission The index i of the number x in the multiplication bitmap, then the permission number x will be stored in the position of index i in the multiplication bitmap with the multiplication bitmap coefficient n, and an identifier can also be used to identify the role with the permission number at this position permissions for x. In some embodiments, binary is used for identification, and the identification bit of the index i is marked with a 1 to mark the authority number x that has the right;

[0045] (1) Take the permission wit...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of data processing and computing, and discloses an RBAC optimization algorithm based on a multiplication bitmap. The number of digits of the permission number and the number of digits of the permission identifier are used to calculate the multiplication factor of the permission owned by the role; each digit of the permission identifier corresponds to the permission number in turn, and the permission identifier associated with each multiplication factor is converted into the corresponding permission bit Figure; obtain the multiplication bitmap based on the multiplication factor and the permission bitmap, and store the multiplication bitmap to the database. The technical solution of the present invention occupies a small storage space, the data processing logic is simple and efficient, and the authority query efficiency is high.

Description

technical field [0001] The invention relates to the field of data processing and computing, in particular to an RBAC optimization algorithm based on a multiplication bitmap. Background technique [0002] In the traditional role-based permission control (RBAC) storage method, the relationship between roles and permissions (functions) is stored in the table records of the relational database. This storage method in the prior art has the following problems: [0003] (1) Large storage space occupation: In the traditional method, a role-permission relationship uses a table record, and each role-permission relationship record occupies about 64 bits (32 bits of role number + 32 bits of permission number), and each role-permission relationship All need to be stored, and a large amount of redundant data needs to be saved; [0004] (2) The expansion operation is cumbersome: in the traditional method, if new permissions are added, a large number of role permission relationship records...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/22G06F16/21
CPCG06F16/22G06F16/21
Inventor 杜锷何旭
Owner 中建电子商务有限责任公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More