LearnNewsExamplesServices
Frontmatter
id9226
titleEnhance KB: Document maxUsers cap and performance trade-offs in DevIndex
stateClosed
labels
documentationai
assigneestobiu
createdAtFeb 21, 2026, 3:21 PM
updatedAtFeb 21, 2026, 3:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/9226
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 21, 2026, 3:22 PM

Enhance KB: Document maxUsers cap and performance trade-offs in DevIndex

Closed v12.0.0 documentationai
tobiu
tobiu commented on Feb 21, 2026, 3:21 PM

Following the implementation of the maxUsers cap (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.jsonl file 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:

  1. Update Storage.mjs: Enhance the class-level JSDoc to explain the pruning mechanism and the performance trade-off rationale behind the users.jsonl file size.
  2. Update config.mjs: Add detailed context to the maxUsers property explaining why the 50,000 limit exists (40MB file size, client-side performance).
  3. Update Updater.mjs: Briefly mention the dynamic threshold interaction with the maxUsers cap in the workflow description.
tobiu added the documentation label on Feb 21, 2026, 3:21 PM
tobiu added the ai label on Feb 21, 2026, 3:21 PM
tobiu referenced in commit a64625e - "docs(devindex): Enhance KB by documenting maxUsers cap and performance trade-offs (#9226)" on Feb 21, 2026, 3:22 PM
tobiu assigned to @tobiu on Feb 21, 2026, 3:22 PM
tobiu
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 the maxUsers property, highlighting the ~40MB file size projection for 100k users and the client-side memory/parsing trade-offs.
  • Storage.mjs: Expanded the class-level @summary to document the maxUsers cap, explaining how it protects the UI responsiveness by enforcing a capped users.jsonl size and raising the threshold.json bar.
  • Updater.mjs: Enhanced the class-level workflow documentation to clarify how the "Filter" phase utilizes the dynamic threshold managed by Storage once 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