MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / insert_bulk_position

Method insert_bulk_position

modules/benchmarks-cs/ia_loop.cs:135–143  ·  view source on GitHub ↗
(ReducerContext ctx, uint count)

Source from the content-addressed store, hash-verified

133 }
134
135 [SpacetimeDB.Reducer]
136 public static void insert_bulk_position(ReducerContext ctx, uint count)
137 {
138 for (uint id = 0; id < count; id++)
139 {
140 ctx.Db.position.Insert(new(id, id, id + 5, id * 5));
141 }
142 Log.Info($"INSERT POSITION: {count}");
143 }
144
145 [SpacetimeDB.Reducer]
146 public static void insert_bulk_velocity(ReducerContext ctx, uint count)

Callers

nothing calls this directly

Calls 2

InsertMethod · 0.45
InfoMethod · 0.45

Tested by

no test coverage detected