LearnNewsExamplesServices
Frontmatter
id9463
titleTreeGrid Big Data Demo: Implement Organic Data Generation Algorithm
stateClosed
labels
enhancementaigrid
assigneestobiu
createdAtMar 13, 2026, 12:07 PM
updatedAtMar 13, 2026, 12:39 PM
githubUrlhttps://github.com/neomjs/neo/issues/9463
authortobiu
commentsCount1
parentIssue9461
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 13, 2026, 12:39 PM

TreeGrid Big Data Demo: Implement Organic Data Generation Algorithm

Closed v12.1.0 enhancementaigrid
tobiu
tobiu commented on Mar 13, 2026, 12:07 PM

Goal

Implement a highly efficient, organic data generation algorithm within Neo.examples.grid.treeBigData.MainStore to create a massive, jagged tree structure for stress testing.

Requirements

  1. Extend TreeStore: MainStore must extend Neo.data.TreeStore.
  2. Organic Algorithm: Implement a generateData(amountNodes, amountColumns, maxDepth) method.
    • Do not use strict, symmetrical loops (e.g., exactly 10 children per node).
    • Instead, generate a flat array of records.
    • Create an initial pool of "folder" nodes.
    • For subsequent nodes, randomly assign a parentId from the eligible folder pool.
    • Randomly determine if a node is a leaf or a folder. If it's a folder and hasn't reached maxDepth, add its id to the parent pool.
  3. Data Volume: The default amountRows_ (which acts as total nodes here) should be around 20,000 to match the big data demo.
  4. Payload Data: Generate random data for columns (e.g., firstname, lastname, number1, number2, etc.) alongside the tree-specific fields (id, parentId, isLeaf, collapsed).
  5. Turbo Mode: The autoInitRecords config should be set to false on the store to utilize the TreeStore's lazy instantiation (Turbo Mode).
tobiu added the enhancement label on Mar 13, 2026, 12:07 PM
tobiu added the ai label on Mar 13, 2026, 12:07 PM
tobiu added the grid label on Mar 13, 2026, 12:07 PM
tobiu assigned to @tobiu on Mar 13, 2026, 12:07 PM
tobiu added parent issue #9461 on Mar 13, 2026, 12:07 PM
tobiu referenced in commit e44bd9c - "feat: Implement organic tree data generation algorithm (#9463)" on Mar 13, 2026, 12:38 PM
tobiu
tobiu Mar 13, 2026, 12:38 PM

Data generation algorithm and correct Tree base classes applied via commit e44bd9c8a.

tobiu closed this issue on Mar 13, 2026, 12:39 PM