Commit 271bb48
rbacs: filter out model that are already owned by context
Taking example of a network that have multiple rbacs. In a situation
of selecting networks that are shared to a project.
If we could could already match the one that are owned by the context
we can expect les rbacs to scan.
https://bugs.launchpad.net/neutron/+bug/1918145/comments/54
In an environement with about 200 00 rbacs and 200 networks this
reduce time of the request from more than 50s to less than a second.
Related-bug: #1918145
Signed-off-by: Sahid Orentino Ferdjaoui <[email protected]>
Change-Id: I54808cbd4cdccfee97eb59053418f55ba57e11a6
Signed-off-by: Sahid Orentino Ferdjaoui <[email protected]>
Change-Id: Ib155fbb3f6b325d10e3fbea201677dc218111c17
(cherry picked from commit e6de524)1 parent e5e6749 commit 271bb48
File tree
2 files changed
+6
-2
lines changed- neutron
- db
- tests/unit/extensions
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
0 commit comments