Odoo Help


Memory shared by all OpenERP thread

Aurélien DUMAINE
on 8/24/13, 12:07 PM 970 views


I need to store some values during very short time(in order to sync several clients) and I would like it dosen't appear in the database. I thought osv_memory did that but after testing, instances are recorded in the database.

How can I store some list or dictionary in a memory area shared by all the OpenERP threads ?


osv_memory objects are written into the database but also get pruned regularly. My only guess would be to utilize context for something like that. Hard to say when I don't know why you need it shared between threads though.

Brett Lehrer
on 8/24/13, 7:00 PM

Thanks. My purpose is to synchronize several third party clients. So if it's not shared between all the threads, one client may use the thread1 to push and another client would pull from thread2... and it would be unsynchronised...

Aurélien DUMAINE
on 8/24/13, 8:29 PM

Would it make more sense for the third party clients to interact with the database? Just a thought, I'm not sure how I'd handle a situation like that.

Brett Lehrer
on 8/28/13, 3:45 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 8/24/13, 12:07 PM
Seen: 970 times
Last updated: 3/16/15, 8:10 AM