Data filtering method and system based on user permission

A technology of user permissions and filtering methods, applied in the database field, can solve problems such as memory overflow, memory waste, and service stop, and achieve the effects of reducing memory usage, reducing strong coupling, and avoiding interference

Inactive Publication Date: 2022-05-03
北京锐融天下科技股份有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Only through the user authority control mechanism provided by the database software, it cannot meet the business requirements to control the access to each piece of data in each data table, and the tenant function is not flexible enough, because the user authority changes dynamically when the system is running. Loading all the data that users can access into the memory and then filtering the data through logical judgment can achieve the goal, but it also causes waste of memory. The risk of unnecessary memory occupation is proportional to the size of the data. Serious will directly lead to memory overflow and cause the service to stop

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
  • Data filtering method and system based on user permission
  • Data filtering method and system based on user permission
  • Data filtering method and system based on user permission

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0031] Below in conjunction with accompanying drawing, the present invention is described in further detail:

[0032] Such as figure 1 As shown, a method for filtering data based on user authority provided by the present invention includes:

[0033] Create a permission organization table to map the architecture of business organization node...

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 discloses a data filtering method and system based on user permission, and the method comprises the steps: creating a permission organization table which is used for mapping the architecture of business organization nodes with different permissions in a business system; adding a permission attribution dimension column aiming at the business data table to describe a corresponding business organization node in a permission organization table to which the permission of each row of data belongs; when a current user executes data query or modification, generating an SQL statement according to a query or modification instruction; and according to the business organization node of the current user, adding a filtering condition aiming at the permission attribution dimension column in the SQL statement, and according to the filtering condition, limiting the data to be queried or modified to be the data owned by the current user to be the data owned by the data permission, and executing the modified query or modification instruction. Through the technical scheme of the invention, the memory occupation is reduced, the fine granularity and higher flexibility of authority control are maintained, the strong coupling of authority processing and business logic is reduced, and interference is avoided.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a data filtering method based on user authority and a data filtering system based on user authority. Background technique [0002] At present, the commonly used relational databases on the market provide a user authority management mechanism to isolate the data of database users with different authority at the storage level, or to isolate the data pairs of different tenants in the same database through the tenant function. Usually, when an enterprise develops its own business system, any system that needs to store user status, such as user registration and login, must implement the logical authority of the user in the system based on its own business, through the design of the authority system. Allow data within the permissions of users with different permissions. The scheme of the present invention is based on the level of database authority control, and realizes a more fine-...

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 Applications(China)
IPC IPC(8): G06F16/2457G06F16/242G06F16/28G06F21/62
CPCG06F16/24573G06F16/2445G06F16/284G06F21/6218G06F2221/2141
Inventor 孙宝岳闵刚姚占龙
Owner 北京锐融天下科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products