| To: | realbasic-plugins@lists.realsoftware.com |
|---|---|
| Subject: | To commit and close or to not commit and close. That is the question. |
| From: | David Cox <david_cox@mac.com> |
| Date: | Fri, 04 May 2012 15:18:21 +0100 |
| Authentication-results: | mx.google.com; spf=pass (google.com: domain of realbasic-plugins-bounces@lists.realsoftware.com designates 74.124.194.228 as permitted sender) smtp.mail=realbasic-plugins-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| Reply-to: | Real Studio Plugins <realbasic-plugins@lists.realsoftware.com> |
| Sender: | realbasic-plugins-bounces@lists.realsoftware.com |
I must confess a sin. Whenever I open my cloud-based MySQL database using the MySQL Community plugin I open it is discrete modules (rather than once on app open), read of write the data, then end the module i.e. no db.commit or db.close. Now this has worked fine for me and still does. BUT what is the risk? Does RS see that I have opened but not closed the database and close it for me? Am I taking memory away in the background leading to a future crash? Will the RS garbage collection fix the problem for me? i.e. must you perform a db.commit and db.close every time before exiting a module (assuming you create db in the module)? TIA David Cox Holy Mackerel Software _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Next by Date: | Re: To commit and close or to not commit and close. That is the question., Charles Yeomans |
|---|---|
| Next by Thread: | Re: To commit and close or to not commit and close. That is the question., Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |