-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
What would you like to be added:
Support for prefix matching and index persistence in dubbo-admin's indexing system. Specifically:
-
Prefix Matching Support:
- Extend index query logical operators beyond simple equality matches to support prefix-based searches
- For memory storage: Implement Trie data structure to enable efficient prefix matching
- For database storage: Design and implement database queries that support prefix matching along with other composite conditions
-
Index Persistence for Database Storage:
- Create a new database table to persist indexes when using DB-backed storage
- Ensure index consistency across multiple replicas in Master-Slave deployment architecture
- Enable all replicas to access persisted indexes for frontend query operations
-
Indexer Refactoring:
- Expand logical operators in the
Indexerdefinition beyond the current "Equals" operator - Refactor the
Indexerinterface to support extended query capabilities - Update dependent components including
ManagerandConsoleto work with the new indexing system
- Expand logical operators in the
Why is this needed:
Related to #1381 proposal.
Currently, dubbo-admin's indexing system has the following limitations:
- Only supports simple equality matching, lacking prefix-based search capabilities
- In multi-replica deployments with database storage, indexes are only maintained in memory on the leader replica, causing query inconsistencies
- The current index structure (map[idx_value][resource_key]) is too simple to support advanced query requirements
This enhancement will:
- Enable more flexible and powerful search capabilities for users querying resources
- Ensure data consistency and availability in distributed deployments
- Improve the overall scalability and reliability of dubbo-admin in production environments
Metadata
Metadata
Assignees
Labels
No labels