WSS_R2D2
New Member
Hi all!
I've been working with progress back in the day's and went into web dev for years with asp to come back recently in progress.. Since the developpment is quite not the same as for the database access, i.e asp/sqlServer you need to create a recordset, build you queries, build connections etc etc then be carefull to release all your objects etc.. whereas with progress it's a direct db access.. I am having a hard time to re-adapt my self back to this approach though!
My question is that I've just seen the release statement. ie.
find <table>.
release <table>.
I see that we could use the release statement no regards to the lock specified on the find statement. I would like to know which practice would be the best:
-> doing a find, keep it until we need it and never releasing it ( well until progress release it from the buffer , that is when the page scoope is finsh ) or
-> doing a find, assigning the values you need inside variables and releasing it from the buffer when done assigning your variables.
See, am quite in the same mental way that you would be coding with asp, you make your db connection and as soon as you could free either your recordset or your object than the best it is.
So basically, I suppose that the best practice, no regards that this is a client/server application would be to perfom a find -> assigning variables with the values and releasing the find from the buffer the quicker possible. Am I correct?
Thanks for any input.
Cheers
I've been working with progress back in the day's and went into web dev for years with asp to come back recently in progress.. Since the developpment is quite not the same as for the database access, i.e asp/sqlServer you need to create a recordset, build you queries, build connections etc etc then be carefull to release all your objects etc.. whereas with progress it's a direct db access.. I am having a hard time to re-adapt my self back to this approach though!

My question is that I've just seen the release statement. ie.
find <table>.
release <table>.
I see that we could use the release statement no regards to the lock specified on the find statement. I would like to know which practice would be the best:
-> doing a find, keep it until we need it and never releasing it ( well until progress release it from the buffer , that is when the page scoope is finsh ) or
-> doing a find, assigning the values you need inside variables and releasing it from the buffer when done assigning your variables.
See, am quite in the same mental way that you would be coding with asp, you make your db connection and as soon as you could free either your recordset or your object than the best it is.
So basically, I suppose that the best practice, no regards that this is a client/server application would be to perfom a find -> assigning variables with the values and releasing the find from the buffer the quicker possible. Am I correct?
Thanks for any input.
Cheers