Multi-tenant-oriented data acquisition method, device and system

A technology for data acquisition and multi-tenancy, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of difficult cross-tenant statistical data, high server acquisition and maintenance costs, low isolation and security, etc.

Inactive Publication Date: 2012-05-16
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF4 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] But these three solutions have disadvantages: the first solution requires the installation of a large number of databases, which makes the server purchase cost and maintenan

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
  • Multi-tenant-oriented data acquisition method, device and system
  • Multi-tenant-oriented data acquisition method, device and system
  • Multi-tenant-oriented data acquisition method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 1 It shows a multi-tenant-oriented data acquisition method provided by the first embodiment of the present invention.

[0032] In step S101, a tenant data access request is received, and the tenant data access request carries a tenant identifier.

[0033] In the embodiment of the present invention, when a request for accessing tenant data is received, the identifier of the tenant that needs to be accessed is obtained at the same time. Among them, the tenant identification can be a tenant ID, a tenant name, and so on.

[0034] In step S102, the data source corresponding to the tenant identifier is obtained according to the tenant identifier and the pre-stored data source configuration file.

[0035] In the embodiment of the present invention, this step is mainly implemented through the following two steps:

[0036] First, the pre-stored data source configuration file is parsed to obtain the mapping relationship between the tenant identifier and the data source, and the map...

Embodiment 2

[0044] In the embodiment of the present invention, according to actual needs, a data source can be configured through one or more data source configuration files, and each data source configuration file represents a data source. Therefore, according to different application scenarios, figure 1 The specific implementation of step S102 in is different. Three different practical application scenarios are described below, but they are not limited to these three applications.

[0045] 1. There is only one database, and all tenants share databases and tables.

[0046] In the embodiment of the present invention, since all tenants share the database and all the tables in the database, no matter which table in the database is accessed, the same path is used and only one unique data source is needed. Correspondingly, there is only one data source configuration file, which includes all tenant identities. Therefore, regardless of the received request to access any tenant data, only the data ...

Embodiment 3

[0055] figure 2 It shows a multi-tenant-oriented data acquisition method provided by the third embodiment of the present invention.

[0056] In step S201, a tenant data access request is received, and the tenant data access request carries a tenant identifier.

[0057] In step S202, it is determined whether there is a mapping relationship between the tenant identifier and the data source in the cache, if yes, step S204 is executed, otherwise, step S203 is executed.

[0058] In the embodiment of the present invention, since the data source configuration file needs to be parsed to obtain the mapping relationship between the tenant and the data source, it would be too cumbersome if the data source configuration file needs to be parsed every time the data of the same tenant needs to be accessed. , You only need to cache the mapping relationship between the tenant and the data source after parsing all the data source configuration files when accessing the data of a certain tenant for the...

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 is applicable to the field of computer software and provides a multi-tenant-oriented data acquisition method, device and system. The method comprises the following steps: receiving a tenant data access request which carries tenant identifiers; obtaining data sources corresponding to the tenant identifiers according to the tenant identifiers and data source configuration files stored in advance; and obtaining the requested tenant data via data source access databases corresponding to the tenant identifiers. The method, the device and the system provided by the invention have the advantages that: one or more data source configuration files can be actually configured according to different application scenarios; therefore the method can be used in different application scenarios and is more widely applied; and a data source configuration file is configured independently for the tenants requiring high isolation performance and security and is used for managing the data sources related to the tenants, thus the requirement of some tenants for high isolation performance and security is met further.

Description

Technical field [0001] The invention belongs to the field of computer software, and in particular relates to a data acquisition method, device and system for multiple tenants. Background technique [0002] Many of the current software application models that provide software services based on the Internet involve multi-tenancy. Multi-tenancy means that a single software instance can serve multiple organizations, and each organization served is called a tenant. To enable a software to support multi-tenancy, not only must its software architecture be modified accordingly, but also its database structure must be specially designed, and security and isolation must be guaranteed. There are three main existing isolation schemes for tenant data: one is one tenant, one database; the other is a multi-tenant shared database, and one tenant is a table; the other is a multi-tenant shared database and the tables in the shared database are shared. The tenant ID is used to distinguish tenant ...

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
IPC IPC(8): G06F17/30
Inventor 毛国雷
Owner KINGDEE SOFTWARE(CHINA) CO LTD
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