Skip to content

Address PR comments from PiCT (14) #254

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Address PR comments from PiCT (14) #254

merged 1 commit into from
Apr 7, 2025

Conversation

swoocn
Copy link
Member

@swoocn swoocn commented Apr 6, 2025

Changes include ->

  • Adding and integrating toggle middleware to BE.
  • Improve query efficiency for resolving seller settings by changing N+1 query to ~constant time.
  • Add indexing to Seller Item model.

See Docker PR for reference @ map-of-pi/map-of-pi-docker#46

…fix N+1 query for resolving seller settings; add indexing to seller item.
Copy link

vercel bot commented Apr 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
map-of-pi-backend-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2025 3:13pm

Copy link
Member

@DarinHajou DarinHajou left a comment

Choose a reason for hiding this comment

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

Looks great! Earlier concerns from the previous PR are addressed here.

  • seller_id in SellerItem is now indexed

  • Toggle middleware (onlineShoppingFeature) added to relevant routes

  • N+1 query in resolveSellerSettings replaced with efficient batch lookup

Solid update! Nothing else from my side.

@swoocn
Copy link
Member Author

swoocn commented Apr 7, 2025

Awesome, thanks @DarinHajou!

@swoocn swoocn merged commit 5eb57b5 into dev Apr 7, 2025
3 checks passed
@swoocn swoocn deleted the misc-refactor-work branch April 7, 2025 21:59
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.

2 participants