-
May 13th, 2020, 09:55 AM
#2
Hi Nono,
unfortunately, I'm not an expert in Python development, but it looks like a multithreading approach is the best way to achieve your targets.
If inserting data into the database takes too much time, then probably you should switch to a sort of asynchronous task that will be in charge of only operating on the DB. Otherwise, you risk blocking too often the thread calling the _on_item_update method.
For example, you could enqueue items onto a buffer which will be processed by another thread, whose task is to update the DB.
Best,
Gianluca
Similar Threads
-
By Eli Shabtay in forum Client SDKs
Replies: 1
Last Post: May 11th, 2015, 08:48 AM
-
By Eli Shabtay in forum General
Replies: 1
Last Post: May 11th, 2015, 08:48 AM
-
By emmajyu in forum Client SDKs
Replies: 2
Last Post: June 24th, 2013, 09:01 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 07:39 PM.
Bookmarks