Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-05-09 Thread Juan Antonio Ibañez Santorum
+1 Perfect explanation. Thank you very much! 2011/5/8 Reza Lotun > Hi Juan, > > 2011/5/8 Juan Antonio Ibañez Santorum > >> MUST I apply that change or may be I SHOULD do it? Why is it necessary? > > > Each network connection on your system is represented by a 'file > descriptor', in Unix termi

Re: [Twisted-Python] Question about using the adbapi

2011-05-09 Thread Pandelis Theodosiou
I see 2 other options: a) keep the last (longitude, latitude) pair for every receiver stored in your script, too, besides the db. When a new pair of values arrives, compare it with the current and only if it is different, send the "INSERT" query to the database. b) When a new pair of values arriv

Re: [Twisted-Python] Question about using the adbapi

2011-05-09 Thread exarkun
On 10:50 am, albert.bra...@weiermayer.com wrote: Hi! In the application I'm currently working on, we gather data from different sources and store them in a database, but only if the values have changed. One example is GPS information. We don't want to store hundreds of identical values that are

[Twisted-Python] Question about using the adbapi

2011-05-09 Thread Albert Brandl
Hi! In the application I'm currently working on, we gather data from different sources and store them in a database, but only if the values have changed. One example is GPS information. We don't want to store hundreds of identical values that are sent by the receiver, so we have to compare the