which one performs better - sys_properties with ignore cache=true OR GlideRecord
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 03:58 AM
Ahoy,
My question: is running GlideRecord get() method on a custom table as fast as calling gs.getProperty() when the property has ignore_cache=true? Can gs.getProperty be replaced with .get() in this case?
Background: in our environment, we are not allowed to perform any changes in PROD instance, punctum. This means we are also forbidden to update any sys_properties. Often comes a situation that we need to do that and to perform sys_property change, we must undergo entire release process (update property in sub dev, capture update in the update set, push the update set to master dev, release to app repo, install in UAT, wait 24 h, install in PROD). This process takes often 2 days. I am about to create custom, scoped table for frequently changed configurations and a Class which will basically mimic gs.getProperty(name, default value). My concern is obvious - can this have any potential performance impact, running GlideRecord frequently?
Thank you for any input!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 04:39 AM
Hi
As you already aware that gs.getProperty is a Server Side way to get the value stored in a system property.
As per the scenario you mentioned, it's better to go with gs.getProperty() while the property has ignore_cache=true rather then GlideRecord get().
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 11:49 PM
Hi
Any update to this ?Any follow-up required? if not
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 05:19 AM
Hi,
is running GlideRecord get() method on a custom table as fast as calling gs.getProperty() when the property has ignore_cache=true? - There is no much difference on fast if use this in server side but
using gs.property is best practice but in your scenario you can use the GlideRecord with get method
Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 03:52 AM
Thank you, we will put it into test. I will eventually post update next week how does it perform (we are using gs.getProperty in our scoped app lets say ~25 M times a day so we will replace that with GlideRecord get because of reasons above).