Skip to content

Conversation

@bibhuti230185
Copy link
Contributor

@bibhuti230185 bibhuti230185 commented Nov 28, 2025

Summary of changes :

Enhanced the VendorRepository to use view-based pagination with sorting. The key improvements include:
View Selection Logic: The getViewFromPagination() method maps sort column numbers to the appropriate CouchDB views (vendorbyfullname, vendorbyshortname, all)
Optimized Pagination: Uses queryViewPaginated() for better performance when sorting, with a fallback to index-based queries for reliability

Issue:

Suggest Reviewer

@GMishx

Note:

These changes also incorporate suggestions from apache/couchdb#5756

@GMishx GMishx added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Nov 28, 2025
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

A suggestion to not have this function.

GMishx
GMishx previously approved these changes Dec 30, 2025
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good.

@GMishx GMishx force-pushed the fix/vendors/search-pagination branch from 66bf5fe to d636809 Compare December 30, 2025 08:43
@GMishx GMishx changed the title Fix/vendors/search pagination fix(vendors): fix search and pagination Dec 30, 2025
@GMishx GMishx force-pushed the fix/vendors/search-pagination branch 3 times, most recently from 1399cb4 to 9287afa Compare December 30, 2025 10:08
@bibhuti230185 bibhuti230185 force-pushed the fix/vendors/search-pagination branch from 681e9b0 to f45a00a Compare January 12, 2026 06:47
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

One minor change. Rest looks good.

Fix the search for Vendors and make responses DB paginated.

Signed-off-by: Gaurav Mishra <[email protected]>
@bibhuti230185 bibhuti230185 force-pushed the fix/vendors/search-pagination branch from f45a00a to f42f5af Compare January 16, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants