Skip to content

Commit ea74490

Browse files
committed
Sharded cluster - fix index
1 parent cb97c76 commit ea74490

File tree

1 file changed

+1
-1
lines changed
  • doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster

1 file changed

+1
-1
lines changed

doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/storage.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ box.schema.create_space('bands', {
88
if_not_exists = true
99
})
1010
box.space.bands:create_index('id', { parts = { 'id' }, if_not_exists = true })
11-
box.space.bands:create_index('bucket_id', { parts = { 'id' }, unique = false, if_not_exists = true })
11+
box.space.bands:create_index('bucket_id', { parts = { 'bucket_id' }, unique = false, if_not_exists = true })
1212

1313
function insert_band(id, bucket_id, band_name, year)
1414
box.space.bands:insert({ id, bucket_id, band_name, year })

0 commit comments

Comments
 (0)