Skip to content

Multicolumn Indices #304

Answered by tobymao
tobymao asked this question in Q&A
Aug 11, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

`
class Meta:

    constraints = [

        
          sqlalchemy.Index('idx_a_b', 'a', 'b')

    ]

`

seems to be what i want, is this correct?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@collerek
Comment options

@tobymao
Comment options

@tobymao
Comment options

@collerek
Comment options

Answer selected by tobymao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants