Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

Hi,

I have face so many times serialize access error. And I have also seen that it is due to query like SELECT .... FOR SHARE. we can also see into log.

TransactionRollbackError: could not serialize access due to concurrent update CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x"

Why Odoo / OpenERP use SELECT .... FOR SHARE query to retrieve data ?

Ảnh đại diện
Huỷ bỏ

What version/revision is that on?

I've noticed this same issue several times before, I don't know where the FOR SHARE context comes from though. It's always on res_users, too.

Tác giả

Thanks a lot for support this question. I have found that this is an issue from the beginning of the openerp till now. Why it is used ? and what is the benefit of this ? I dont know.

Tác giả

A possible solution: https://www.odoo.com/forum/help-1/question/transactionrollbackerror-a-possible-solution-69070

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 15
3509
Certification ODOO Đã xử lý
2
thg 7 15
5238
0
thg 3 15
4200
1
thg 3 15
3359
2
thg 8 22
14394