Descussion: apply permissions recursivly to all children directories
This page is about the discussion with Shuvam about the file sharing UI.
In the file sharing UI one feature was to be added to apply permissions to
all of the children directories. For this a new checkbox is added in the
UI.
Problem: When the permissions are copied to all children directories it
takes lot of time due to large number of database queries and database
updates. And during that time UI page will not receive any reply from
server.
We had a discussion about how to copy the permissions to all children directories
from the current directory and reply the browser imediatly without making him wait
for the update to DB.
The conclusion was to prepare a temporary action table in DB for the changes in
the shared_dir, shared_fr and shareddir_accessmap tables. And the these three
tables will be updated from the temporary action tables's actions in the
sequence of the transaction ids.
- Login to post comments
- Printer-friendly version
- Send to friend