Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/megatron/energon/flavors/webdataset/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ def close(self):

if self.enable_sample_tables:
# Create the index after adding all the samples for better speed
# Index on sample_key for fast lookups
self.db.execute(
"CREATE UNIQUE INDEX IF NOT EXISTS idx_samples_sample_key ON samples(sample_key)"
Comment thread
bbuschkaemper marked this conversation as resolved.
)
# sample_key uniqueness already creates an implicit SQLite index via the table schema.

# Create index on the samples table. Help the planner if it chooses `samples` as the probe side of the join
self.db.execute(
Expand Down
Loading