Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4915 มุมมอง

I want to store data only in Database, not in filesystem. In order to deploy in several servers.

Is there any way to achieve this?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Activate developer mode. Go to Settings > Technical > Parameters > System Parameters and set the value of the parameter ir_attachment.location to db 

You will need to create the parameter if it does not exist in the list.

อวตาร
ละทิ้ง
ผู้เขียน

Hi Paresh, thanks for your answer, which could be a good solution for me. But it require configurate each db.

Is there any way to set this configuration to apply at all databases, maybe into odoo.conf?

If I have understood your question correctly, once you set this option for the db, your db replication/mirroring solution should take care of the rest.

You can simply trigger a SQL query in all the databases.

ผู้เขียน

Thank Sudhir and Paresh, I will try this solution.

Could you tell me please, if you see disadvantages to use db storing versus file system.

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มี.ค. 15
14078
2
มี.ค. 25
1398
Getting data from user form แก้ไขแล้ว
3
ก.ย. 23
4403
1
พ.ย. 18
4367
0
ส.ค. 18
3784