Skip to content

Commit efdcf84

Browse files
refactor: remove bulk raw content indexation
1 parent 45a3083 commit efdcf84

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

schema.graphql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ type Bulk @entity(immutable: true) {
347347
hash: String!
348348
slices: [BulkSlice!] @derivedFrom(field: "bulk")
349349
deal: Deal! @derivedFrom(field: "bulk")
350-
content: String! # raw content (is it useful?)
351350
}
352351

353352
type BulkSlice @entity(immutable: true) {
@@ -358,7 +357,6 @@ type BulkSlice @entity(immutable: true) {
358357
index: BigInt!
359358
datasets: [Dataset!]!
360359
datasetOrders: [DatasetOrder!]!
361-
content: String! # raw content (is it useful?)
362360
}
363361

364362
enum TaskStatus {

src/Modules/Bulk.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export function handleBulk(content: Bytes): void {
4141
}
4242
bulk = new Bulk(bulkId);
4343
bulk.hash = hash;
44-
bulk.content = content.toString();
4544

4645
const jsonContent = json.try_fromBytes(content);
4746
if (jsonContent.isOk && jsonContent.value.kind == JSONValueKind.ARRAY) {
@@ -89,7 +88,6 @@ export function handleBulkSlice(content: Bytes): void {
8988
bulkSlice.hash = hash;
9089
bulkSlice.bulk = bulk;
9190
bulkSlice.index = index;
92-
bulkSlice.content = content.toString();
9391
bulkSlice.datasets = new Array<string>();
9492
bulkSlice.datasetOrders = new Array<string>();
9593

0 commit comments

Comments
 (0)