-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added a service to generate the customer feed from hotwax to Netsuite. #8
base: main
Are you sure you want to change the base?
Conversation
customerData.remove("areaCode") | ||
customerData.remove("contactNumber") | ||
|
||
customerList.add(customerData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not good practice to keep all data in memory and then write to file. This will cause performance issue,
Instead you should write data to file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So as each customer is iterated, we should be writing to file. Correct? @dixitdeepak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use writer to write data for each row, there are various ways to write large data in file using writer stream.
productStoreId:productStoreId], false)"/> | ||
<set field="csvFilePath" from="ec.resource.getLocationReference(csvFilePathRef).getUri().getPath()"/> | ||
|
||
<!--TODO: Here currently the view used to get the eligible orders for the create feed does not have the shipment method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eligible orders?
customerData.remove("areaCode") | ||
customerData.remove("contactNumber") | ||
|
||
customerList.add(customerData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So as each customer is iterated, we should be writing to file. Correct? @dixitdeepak
} | ||
} | ||
</script> | ||
<!-- Save the Json Feed File path in System Message messageText --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- Save the Json Feed File path in System Message messageText --> | |
<!-- Save the CSV Feed File path in System Message messageText --> |
Todo: Add the description