hi, i am using gorm v1 and how can i use indexes in my database.

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: jinzhu

Auto gorm tag to create indexes http://v1.gorm.io/docs/models.html when auto migration

Comment From: barancanatbas

"https://gorm.io/docs/hints.html#Index-Hints", how can use "db.Clauses(hints.UseIndex("idx_user_name")).Find(&User{})" gorm v1,plase help :)

Comment From: jinzhu

no, doesn't support that ;(

and gorm v1 doesn't accept any new features, maybe migrate your application to v2.

On Mon, Jan 24, 2022 at 2:37 PM barancan @.***> wrote:

"https://gorm.io/docs/hints.html#Index-Hints", how can use "db.Clauses(hints.UseIndex("idx_user_name")).Find(&User{})" gorm v1,plase help :)

— Reply to this email directly, view it on GitHub https://github.com/go-gorm/gorm/issues/5015#issuecomment-1019766625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABVO6TS6OYA2GLXSU55LLUXTXS3ANCNFSM5MPT4H6Q . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Best regards


Jinzhu github.com/jinzhu