Graphql-engine: Create indexes using the Console

Created on 18 May 2019  ·  4Comments  ·  Source: hasura/graphql-engine

Hi,

I know you can do that on PostgreSQL, but manually. It would be handy to be able to rely on the Console to do that instead, and also get the up and down migration files along the way.

As far as I know, at this time, you'll have to craft your own SQL query. That is not only time consuming, but very error-prone. Being able to create indexes, even basic ones, right from the Console would help much.

Thanks.

console enhancement mockup-required 🖊️ high

Most helpful comment

Places where I'd absolutely love to see such a feature in the console would be:

  • At add/modify table e.g. below "Unique Keys"
  • at Data > Schemas near "Untracked foreign-key relations" as suggestions for foreign keys on one-to-many relations
  • at "Query Analysis" for easy query performance improvement (might be more complex, but very nice to have for people with less experience with PostgreSQL).

Additionally it would be handy to see existing indexes in the modify-table section.

All 4 comments

Places where I'd absolutely love to see such a feature in the console would be:

  • At add/modify table e.g. below "Unique Keys"
  • at Data > Schemas near "Untracked foreign-key relations" as suggestions for foreign keys on one-to-many relations
  • at "Query Analysis" for easy query performance improvement (might be more complex, but very nice to have for people with less experience with PostgreSQL).

Additionally it would be handy to see existing indexes in the modify-table section.

yes please. definitely prefer this to manually creating indices.

Any updates on this? Can't believe this hasn't been implemented :(

I just found out that you are forced to do everything via console for migrations and I had to give up my beloved DataGrip, which was a massive productivity hit. And now I find out the console isn't even built completely! Kind of rethinking hasura entirely tbh.

@AdityaAnand1 We'll add this soon. In the meantime, you can use the Raw SQL tab to run any SQL command and mark it as a migration.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

egislook picture egislook  ·  3Comments

sachaarbonel picture sachaarbonel  ·  3Comments

hooopo picture hooopo  ·  3Comments

jjangga0214 picture jjangga0214  ·  3Comments

tirumaraiselvan picture tirumaraiselvan  ·  3Comments