New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workload/kv: add --secondary-index flag #31573

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@nvanbenschoten
Member

nvanbenschoten commented Oct 18, 2018

The flag instructs schema initialization to add a secondary index
on the v column. This has been useful for experimenting with the
perf impact of secondary indexes.

Release note: None

workload/kv: add secondary-index flag
The flag instructs schema initialization to add a secondary index
on the `v` column. This has been useful for experimenting with the
perf impact of secondary indexes.

Release note: None

@nvanbenschoten nvanbenschoten requested a review from a-robinson Oct 18, 2018

@cockroach-teamcity

This comment has been minimized.

Show comment
Hide comment
@cockroach-teamcity

cockroach-teamcity Oct 18, 2018

Member

This change is Reviewable

Member

cockroach-teamcity commented Oct 18, 2018

This change is Reviewable

@@ -121,6 +125,13 @@ func (w *kv) Hooks() workload.Hooks {
}
return nil
},
PostLoad: func(sqlDB *gosql.DB) error {
if w.secondaryIndex {
_, err := sqlDB.Exec(`CREATE INDEX IF NOT EXISTS v_idx ON kv (v)`)

This comment has been minimized.

@tschottdorf

tschottdorf Oct 18, 2018

Member

Is this going to be backfilled in the background? If so, the impact of that will be pretty nondeterministic. Maybe that doesn't matter now, but perhaps call it out on the flag.

@tschottdorf

tschottdorf Oct 18, 2018

Member

Is this going to be backfilled in the background? If so, the impact of that will be pretty nondeterministic. Maybe that doesn't matter now, but perhaps call it out on the flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment