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

Hello everyone,

I'm currently using Barcode module for scanning products. However, when I clicked on an order (which only had a few products), the module loaded all the products inside my database back to the client through get_all_product_by_barcode method.

The problem is, this method is extremely slow. It loaded 64000 products in almost 50 seconds every time I clicked on an order. My workflow is slowed down so much because of it.

Does anyone have solutions for this?

Thank you.

อวตาร
ละทิ้ง

You can inherit this function in a custom module and instead of searching via orm, you can do it direct search using sql queries, which will reduce the time

Related Posts ตอบกลับ มุมมอง กิจกรรม
6
ส.ค. 15
7631
0
ก.ค. 24
1719
Removing Barcode แก้ไขแล้ว
3
ก.ค. 21
4546
1
มี.ค. 20
5450
1
มี.ค. 15
3689