Question
Application.cfm - Should I use queries or set session variables?
Hi,
I have an application that has many users for many different companies logged in at the same time using the system. I use the application.cfm to call and set a bunch of variables that make the system work, such as preferences and things. Would it be better to use 5 or 6 queries all pulling one record, or call the queries only once at the start of the session and set 30 to 50 session variables based on the query results? Which method would bog the system down less? It seems that session variables use quite a bit of memory. I'm just trying to get the "simple answer" for this, if that's even possible.
Please let me know your thoughts and experience on this.
Thanks much,
Jeff W!
I have an application that has many users for many different companies logged in at the same time using the system. I use the application.cfm to call and set a bunch of variables that make the system work, such as preferences and things. Would it be better to use 5 or 6 queries all pulling one record, or call the queries only once at the start of the session and set 30 to 50 session variables based on the query results? Which method would bog the system down less? It seems that session variables use quite a bit of memory. I'm just trying to get the "simple answer" for this, if that's even possible.
Please let me know your thoughts and experience on this.
Thanks much,
Jeff W!
