Class E088_TreeCreateBulk

Assembly: redb.Examples.dll

BULK create tree hierarchy (Pro feature) - FAST version.
Creates ~100 tree nodes using pre-generated IDs + AddNewObjectsAsync.
Compare with E089 (sequential CreateChildAsync).
Structure:

1 root (TechCorp)
10 regional offices
50 departments (5 per office)
40 teams (4 per first 10 departments)

Optimization:

NextObjectIdBatchAsync - get all IDs in 1 query
AddNewObjectsAsync - bulk insert all nodes in 1 operation

[ExampleMeta("E088", "Tree Create BULK - Fast", "Trees", ExampleTier.Free, 3, new string[] { "Tree", "Bulk", "AddNewObjectsAsync", "Pro" }, Order = 88)]
public class E088_TreeCreateBulk : ExampleBase

Inheritance

ObjectExampleBaseE088_TreeCreateBulk

Inherited Members

Methods

RunAsync(IRedbService)

Run the example and return result.

public override Task<ExampleResult> RunAsync(IRedbService redb)