MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / load

Function load

src/environmentd/src/http/static/js/memory.jsx:146–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 setError(false);
145
146 const load = async () => {
147 const {
148 results: [_set_cluster, _set_replica, records_table],
149 } = await query(`
150 SET cluster = ${formatNameForQuery(props.clusterName)};
151 SET cluster_replica = ${formatNameForQuery(props.replicaName)};
152 SELECT
153 id, name, batches, records, size, capacity, allocations
154 FROM
155 mz_introspection.mz_records_per_dataflow
156 ${whereFragment}
157 ORDER BY
158 records DESC
159 `);
160
161 setRecords(records_table.rows);
162 setLoading(false);
163 };
164 load().catch((error) => {
165 setError(error);
166 setLoading(false);

Callers 2

ViewsFunction · 0.70
ViewFunction · 0.70

Calls 5

debugMethod · 0.80
queryFunction · 0.70
formatNameForQueryFunction · 0.70
getCreateViewFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected