Model building method and device
A model building and model technology, applied in computer security devices, instruments, computing, etc., can solve problems such as high development costs and difficulty in adapting to business scenarios
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach 1
[0065] figure 1 It is a flow chart of the model building method according to Embodiment 1 of the method of the present invention. see figure 1 , in this embodiment, the method includes:
[0066] S11: Determine the dimension table record corresponding to the role.
[0067] S12: Establish a data view according to the dimension table records.
[0068] S13: Associating the role with the data view to establish a data access model.
[0069] The present invention is directed to a star-structured database model. Such as figure 2 As shown, the database model includes fact tables and dimension tables.
[0070] The main feature of the fact table is that it contains numerical information (facts), and these numerical information can be summarized to provide relevant units as historical data. Each fact table contains an index composed of multiple parts. The index contains as a foreign key The primary key of the dependency dimension table.
[0071] The dimension table can be regarde...
Embodiment approach 2
[0074] image 3 is a flow chart of the model building method according to Embodiment 2 of the method of the present invention. see image 3 , in this embodiment, the method includes:
[0075] S21: Obtain the first mapping relationship table.
[0076] Wherein, the first mapping relationship table is used to store the mapping relationship between roles and dimension table records.
[0077] S22: Determine the dimension table record corresponding to the role according to the first mapping relationship table.
[0078] S23: Establish a data view according to the dimension table records.
[0079] S24: Associating the role with the data view to establish a data access model.
[0080] Since the mapping relationship between the role and the dimension table record is directly constructed in the present invention, the dimension table record corresponding to the role can be found efficiently and conveniently.
Embodiment approach 3
[0082] Figure 4 It is a flow chart of the model building method according to Embodiment 3 of the method of the present invention. see Figure 4 , in this embodiment, the method includes:
[0083] S31: Obtain a first mapping relationship table.
[0084] Wherein, the first mapping relationship table is used to store the mapping relationship between roles and dimension table records.
[0085] S32: Determine the dimension table record corresponding to the role according to the first mapping relationship table.
[0086] S33: Find the fact table containing the dimension table records.
[0087] S34: Establish a data view for the fact table according to the dimension table records.
[0088] S35: Associating the role with the data view to establish a data access model.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


