Frontmatter
| id | 9226 |
| title | Enhance KB: Document maxUsers cap and performance trade-offs in DevIndex |
| state | Closed |
| labels | documentationai |
| assignees | tobiu |
| createdAt | Feb 21, 2026, 3:21 PM |
| updatedAt | Feb 21, 2026, 3:22 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9226 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 21, 2026, 3:22 PM |
Enhance KB: Document maxUsers cap and performance trade-offs in DevIndex
tobiu assigned to @tobiu on Feb 21, 2026, 3:22 PM

tobiu
Feb 21, 2026, 3:22 PM
Input from Gemini 3 Pro:
✦ I have applied the Knowledge Base Enhancement Strategy to document the new 50k user cap and its architectural rationale.
config.mjs: Added a detailed explanation to themaxUsersproperty, highlighting the ~40MB file size projection for 100k users and the client-side memory/parsing trade-offs.Storage.mjs: Expanded the class-level@summaryto document themaxUserscap, explaining how it protects the UI responsiveness by enforcing a cappedusers.jsonlsize and raising thethreshold.jsonbar.Updater.mjs: Enhanced the class-level workflow documentation to clarify how the "Filter" phase utilizes the dynamic threshold managed byStorageonce the cap is reached.These changes are committed and pushed to
dev. Closing the issue.
tobiu closed this issue on Feb 21, 2026, 3:22 PM
Following the implementation of the
maxUserscap (50k limit) for the DevIndex, we need to apply the Knowledge Base Enhancement Strategy to document this architectural decision.Rationale: If we allowed the index to grow unbounded (e.g., 100k users), the
users.jsonlfile would reach ~40MB. While we stream and gzip the data, client-side memory constraints and parsing overhead would eventually degrade the application's responsiveness and UX. The cap ensures the app remains fast and "fun to use" while maintaining high quality via the dynamic contribution threshold.Tasks:
Storage.mjs: Enhance the class-level JSDoc to explain the pruning mechanism and the performance trade-off rationale behind theusers.jsonlfile size.config.mjs: Add detailed context to themaxUsersproperty explaining why the 50,000 limit exists (40MB file size, client-side performance).Updater.mjs: Briefly mention the dynamic threshold interaction with themaxUserscap in the workflow description.