mysql - lock down view to be uneditable -


I am creating a database that includes public, private (limited to internal) and confidential data (to a lesser extent Limited). There are very specific requirements that the data security is managed by the database, but I am working in an environment where I do not have direct control of the permissions, and requesting change will take time (2-3 days) ).

That's why I created a structure to meet our structures without the need of many structures. I created two databases on the same server, which is an internal, table which is just something within some of our network's subnets The second public database can be edited by users, where using an administrator account, I want to highlight the public data in the internal database. Make limited thoughts to the public areas of the girls and it works well. However the data should flow on one side and the idea should not be able to write in the source table. And I can not lock public databases only for silting because public databases are used for various purposes of our public website.

So, to access some scripts, some field tables I need to make sure that these ideas can not be inserted, updated, or deleted in the source table. To create a view I use:

  create algorithm = unused view 'table_view' from 'table'  

Documentation to prevent updates Looking at this view, the total figure, the sub section that is in the WHERE section, should be ALGORITHM = TempTable. I would go with the template, but the manual is not clear that it will affect performance. In one paragraph it is said:

It is possible, if possible, merge onto the template, because the merge is usually more efficient

then immediately It says:

One of the reasons for choosing a template is clearly that after creating a temporary table the connection can be released to the built-in tables and used to terminate the statement. As a result, the MERGE algorithm goes Can accelerate lock release Lna to use other clients that view, they are not blocked for a long time.

Ideas are being asked to generate content to generate pages, whether the page can still be more efficient or less lock time Will give me better service? And no, due to the inability to permit permissions on individual areas to meet the requirements of legal privacy to handle it through account permissions, there really is no substitute for meeting each table with homogeneous privacy Need to split into 2-3 tables.

Should the algorithm be unfinished or templates, or another setting in the visual definition that will lock the view. And what would be the effect of the display? Besides, if I do something to force it to any work, like making Havings 1 to make an overall function force, to make it static and to choose the algorithm option.

I'm wondering why you do not just lock

MySQL roles Does not support, where I define a role without these grants & amp; With that role, the account (accounts) is connected ...


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -