New topic: 

PostgreSQLDatabase in a thread

<http://forums.realsoftware.com/viewtopic.php?t=47407>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        rjohnsonvtp          Post subject: PostgreSQLDatabase in a 
threadPosted: Tue Mar 26, 2013 10:53 am                         
Joined: Tue Nov 18, 2008 9:19 pm
Posts: 20                I am using PostgreSQLDatabase in a thread.  I create 
10 of the threads.  Each thread has it's own connection( using the dame db 
credentials) and works on an item.  If I run only one thread it processes items 
very fast.  As I start adding more threads the performance drops off.  For 
example one thread takes a second  two threads take two seconds three threads 
takes 6 seconds  etc.  So then I tried this.  I started 10 processes running 
one thread each and it ran at fast for all 10. It appears to me like the 
PostgreSQLDatabase object is not thread save.  Has anyone seen this behavior?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to