Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer deposit view entity #5

Merged
merged 6 commits into from
Jan 10, 2025

Conversation

Shinde-nutan
Copy link
Contributor

Added two views in the component

  1. CustomerDepositSyncView:
  • This view is designed to fetch customer deposit information and synchronize it for further processing in the system.
  1. DirectCancelOrder:
  • This view is created to fetch data related to orders that are imported as canceled in oms.
  • this types are orders are excluded from the customerDepositSyncView.

@Shinde-nutan Shinde-nutan self-assigned this Dec 19, 2024
<member-entity entity-alias="OISG" entity-name="org.apache.ofbiz.order.order.OrderItemShipGroup" join-from-alias="OH">
<key-map field-name="orderId"/>
</member-entity>
<member-entity entity-alias="DCO" entity-name="co.hotwax.order.DirectCancelOrder" join-from-alias="OH" sub-select="true" join-optional="true">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not recommended to include the ViewEntity an another view entity, it will create complex join and cause performance issue.
Instead use the entities directly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dixitdeepak do you have a suggestion of when we should use sub select? how will we know if it is right time to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will generate the SQL for all the views where we are using the sub-select, for further analysis.

@rehan3586 rehan3586 merged commit 965eeee into hotwax:main Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants