Opened 11 years ago
Closed 10 years ago
#1250 closed enhancement (fixed)
Improve delete speed by optimizing permission handling
| Reported by: | Kurt Endress | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | NPGS 2016_06 (Jun) |
| Component: | Middle Tier | Version: | 1.9.6 Server |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The production server can only manage to add or delete a few dozen rows per second. This leads to adds and deletes of thousands of rows timing out because they take minutes to complete. One test showed turning off security on a test server caused operations to speed up by 12 times. The middle tier getPermission method needs to be optimized to not create so much of a penalty.
Change History (3)
comment:1 by , 10 years ago
| Status: | new → addressed |
|---|
comment:2 by , 10 years ago
| Milestone: | Post-NPGS Prod'n → NPGS 2016_06 (Jun) |
|---|
comment:3 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |
Works better on npgsWEB 1.9.7.1. Got just over 1 minute to delete 4,500 obs records. 1 minute 42 seconds to delete with out any messages, timeout or otherwise. This was off the VPN.
Note:
See TracTickets
for help on using tickets.

Reworked permission system in MT SecureDataGetSave.cs to simplify and speed up permission handling. Wrote new CanAccessMutor method to mostly (but not completely) replace getPermissions. It calculates and caches the rights for a particular user to access a specific user's rows in a table. It only pays attention to permissions based on owned_by, PK id, or site_id. In the case of some rare more complicated permission flags the result as unknown "?" and falls back to getPermissions.