Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Patch: Reconnecting PostgreSQL Automatically on Unstable Networks
Re: Patch: Reconnecting PostgreSQL Automatically on Unstable Networks [message #26411 is a reply to message #26402] Fri, 30 April 2010 10:53 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
zsolt wrote on Thu, 29 April 2010 19:41

I don't use DECLARE CURSOR and FECTH SQL statements, only simple SELECTS.

If you iterate on the result of a SELECT, it iterates on a table in RAM, AFAIK, so reconnection is not an issue here.



Ah, I mean U++ Fetch. Am not using cursors and FETCH either.

Well, you are right that in this PGSQL version, the result set is in RAM. It can change in future though...

(Frankly, I was quite surprised by this issue - sometimes I am loading quite big result sets a pgsql allocating 0.5G is no fun... Smile

Quote:


BTW, I changed PostgreSQLSession::Rollback() to:
void PostgreSQLSession::Rollback()
{
	ExecTrans("rollback");
	if(level>0) level--;
}


and my app is quite usable now on unstable networks.


I guess this patch cannot cause any harm -> applied.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any way to generate sch from database?
Next Topic: SQLITE3: Bind parameter by name
Goto Forum:
  


Current Time: Sun May 12 08:01:08 CEST 2024

Total time taken to generate the page: 0.02057 seconds