Updated documentation and db script with the supplierOrders Collection #152
No reviewers
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja!152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "supplierOrders-Collection-docs-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added the supplierOrders Collection in aligment to the discussion in the last meeting.
Would appreciate the review of the overall state of the collections by @Cordeir01 and @miguelmiranda20 to ensure that a problem/missing something don't happen again. Thanks
The implementation looks solid and the documentation is up to date.
Regarding the index definition on line 471:
The code comment mentions a "Sparse index", but
createIndexcreates a standard index by default. This means MongoDB will index every document whereworkOrderIdisnull, which consumes unnecessary resources given that this field is optional.To fix this and ensure we save memory on internal orders (as per the ticket requirements), please add the
{ sparse: true }option:// Suggested change:
db.supplierOrders.createIndex({ workOrderId: 1 }, { sparse: true });
Fixed @miguelmiranda20
Looks good! Ready to merge