How to ensure that System Performance is not impacted by database query run in the back ground
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 01:00 AM
How to ensure that System Performance is not impacted by database query run in the back ground. We have one field to segregate between two companies A & B such that A company cannot view B company tickets and vice versa. So every development we do for company A we have to ensure to apply query that company is not B in catalog item variables, Table fields etc. So everytime this query will run in backend checking millions of data. In this case how we ensure that system performance is not impacted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 01:14 AM
Why not apply read acl's so you don't need to run this as DB query? With the 'deny-unless' ACL's introduced in Xanadu, this should be easy.
Let's say the segregation on incidents is on 'company' field:
table = incident
applies to = company is A
deny unless = current_user.company = A
and vice versa for company B
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 09:19 AM
Hi Mark,
Thank you for update, will definitely check on the recommended way of configuration but we have already configured based on company field. So now with existing configuration how do we ensure that system performance is not being impacted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2024 03:31 AM
To move away from querying millions of records in the backend. Your solution will impact the system performance. A solution once thought up may very well no longer be the best solution (in fact: the solution impacts performance, so by definition isn't the best). Keeping it because it's already there, will also keep the issues you have with it.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark