does tg do multi-threaded stuff?  Would be cool to have a queue and a thread
pool that talks to the db...

On 6/20/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> finally it hit me. I need to have a background thread to search and fetch
> objects from the to increase performance for my ajax-frontend.
>
> So - any hints on how to make that happen? The problems I'm hitting right
> now
> are looking like this:
>
> Exception pysqlite2.dbapi2.ProgrammingError: 'SQLite objects created in a
> thread can only be used in that same thread.The object was created in
> thread
> id -1270101088 and this is thread id -1209850192' in <bound method
> Transaction.__del__ of <sqlobject.dbconnection.Transaction object at
> 0xb3c3e66c>> ignored
>
>
> This is from nosetests which run against sqlite. So it seems I have to
> prepare
> a thread for being database-aware.
>
> Any suggestions?
>
> Diez
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to