I have a table which has a row with four column, when ever i want these values (4 columns) i connect to the database and get the specified values through the stored procedure.
these 4 values could be used in any part or any form in application.
now my question is that for having better performance , isn't it better i just get these 4 values once ( when the applcation starts) and keep it in global variable?
or it is better to fetch it from databse whenever i need them
these 4 values could be used in any part or any form in application.
now my question is that for having better performance , isn't it better i just get these 4 values once ( when the applcation starts) and keep it in global variable?
or it is better to fetch it from databse whenever i need them