[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128255#comment-17128255
 ] 

ASF subversion and git services commented on OFBIZ-11796:
-

Commit 0d285ccaebecf80498479e5317584bf17c7c1a7a in ofbiz-framework's branch 
refs/heads/release18.12 from Suraj Khurana
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=0d285cc ]

Fixed: Unnecessary iterations and setting inventory for all productFacilities 
in setLastInventoryCount.
(OFBIZ-11796)

Instead of updating all product facilities records on one inventory item 
change, we should be changing only specific product facility record for that 
the inventory item belongs to. Thanks Jacques, Pierre, Pawan and Arun for the 
review.


> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128256#comment-17128256
 ] 

ASF subversion and git services commented on OFBIZ-11796:
-

Commit f9142039568b93f31eea1f09358ef564d2696cc6 in ofbiz-framework's branch 
refs/heads/release17.12 from Suraj Khurana
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=f914203 ]

Fixed: Unnecessary iterations and setting inventory for all productFacilities 
in setLastInventoryCount.
(OFBIZ-11796)

Instead of updating all product facilities records on one inventory item 
change, we should be changing only specific product facility record for that 
the inventory item belongs to. Thanks Jacques, Pierre, Pawan and Arun for the 
review.


> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128252#comment-17128252
 ] 

ASF subversion and git services commented on OFBIZ-11796:
-

Commit a6cf5aafda6561f3fabedeea9007718919d15d02 in ofbiz-framework's branch 
refs/heads/trunk from Suraj Khurana
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=a6cf5aa ]

Fixed: Unnecessary iterations and setting inventory for all productFacilities 
in setLastInventoryCount.
(OFBIZ-11796)

Instead of updating all product facilities records on one inventory item 
change, we should be changing only specific product facility record for that 
the inventory item belongs to. Thanks Jacques, Pierre, Pawan and Arun for the 
review.


> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread Arun Patidar (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128210#comment-17128210
 ] 

Arun Patidar commented on OFBIZ-11796:
--

Good catch Suraj !!!



> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread Pawan Verma (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128075#comment-17128075
 ] 

Pawan Verma commented on OFBIZ-11796:
-

+1 Suraj, looks good.

> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread Pierre Smits (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128060#comment-17128060
 ] 

Pierre Smits commented on OFBIZ-11796:
--

Wel done, Suraj,

I guess there may a lot more of these kinds of overlooked issues. 

> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-08 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127952#comment-17127952
 ] 

Jacques Le Roux commented on OFBIZ-11796:
-

Hi Suraj,

Weird that nobody thought about that before. I guess nobody crossed performance 
issue before, excellent spot Suraj: +1 for commit (only reviewed, but so simple 
I'm confident)

> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OFBIZ-11796) Unnecessary iterations for all productFacilities in setLastInventoryCount

2020-06-06 Thread Suraj Khurana (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127237#comment-17127237
 ] 

Suraj Khurana commented on OFBIZ-11796:
---

Hello team,

Here is the patch for the desired change.

 

> Unnecessary iterations for all productFacilities in setLastInventoryCount
> -
>
> Key: OFBIZ-11796
> URL: https://issues.apache.org/jira/browse/OFBIZ-11796
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>Reporter: Suraj Khurana
>Assignee: Suraj Khurana
>Priority: Major
> Attachments: OFBIZ-11796.patch
>
>
> In the service setLastInventoryCount, which updates lastInventoryCount for 
> product facility records, it works on inventoryItemDetail changes on 
> availableToPromiseDiff.
> In parameter: InventoryItemId
> So it should be updating productFacilities entertaining both productId and 
> facilityId of same inventoryItemId.
> Currently, it it unnecessary updating all the facilities inventory on a 
> single inventory item update.
> It can be major performance factor on a production system working highly on 
> inventory updates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)