<commit_before>UPDATE users SET updateTime = createtime where updatetime is null;
UPDATE items SET updateTime = createtime where updatetime is null
UPDATE rels SET updateTime = createtime where updatetime is null

ALTER TABLE users ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE items ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;

CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);<commit_msg>Add index on thrads createtime<commit_after>UPDATE users SET updateTime = createtime where updatetime is null;
UPDATE items SET updateTime = createtime where updatetime is null
UPDATE rels SET updateTime = createtime where updatetime is null

ALTER TABLE users ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE items ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;

CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON threads(createtime);
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);
{'fraction_non_alphanumeric': 0.08279845956354301, 'fraction_numerical': 0.01797175866495507, 'mean_word_length': 6.756218905472637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2760397', 'n_tokens_mistral': 444, 'n_tokens_neox': 439, 'n_words': 189}