Skip to content
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

Create indexes using the Console #2219

Closed
eliezedeck opened this issue May 18, 2019 · 7 comments
Closed

Create indexes using the Console #2219

eliezedeck opened this issue May 18, 2019 · 7 comments
Assignees
Labels
a/performance c/console Related to console k/enhancement New feature or improve an existing feature p/high candidate for being included in the upcoming sprint

Comments

@eliezedeck
Copy link

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.

@rikinsk-zz rikinsk-zz added c/console Related to console k/enhancement New feature or improve an existing feature p/high candidate for being included in the upcoming sprint labels May 20, 2019
@dsandip dsandip added the design-rfc Picked up by product design team for RFC label May 21, 2019
@dsandip dsandip self-assigned this May 24, 2019
@sn-kaier
Copy link

sn-kaier commented Jun 24, 2019

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.

@tirumaraiselvan tirumaraiselvan added the triage/1-product-candidate This is a good candidate label Jan 8, 2020
@tirumaraiselvan tirumaraiselvan changed the title Create indexes using the Console + auto migration Create indexes using the Console Jan 21, 2020
@tirumaraiselvan tirumaraiselvan removed the triage/1-product-candidate This is a good candidate label Apr 16, 2020
@maxcan
Copy link

maxcan commented Jun 19, 2020

yes please. definitely prefer this to manually creating indices.

@Aditya94A
Copy link

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.

@rikinsk
Copy link
Member

rikinsk commented Jun 29, 2020

@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.

@beerose beerose removed the design-rfc Picked up by product design team for RFC label Dec 22, 2020
@Aditya94A
Copy link

Any updates on this? It's been almost 2 years now :(

Ideally, we should be able to create and manage indices within the console and it should be handled as part of hasura config/metadata itself, not as manual Raw SQL migrations.

@kolharsam
Copy link
Contributor

kolharsam commented Aug 11, 2021

3f35a9a adds support for the creation and deletion of indexes via the console for Postgres data sources. You can expect it to be out in one of the upcoming releases.
Please let us know if you've got any feedback regarding the same. We'd love to hear from you!
The same support will land for other data sources supported by Hasura in upcoming releases!

@eliezedeck
Copy link
Author

That took a long time to land, but still excited it's finally here. Looking forward for the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/performance c/console Related to console k/enhancement New feature or improve an existing feature p/high candidate for being included in the upcoming sprint
Projects
None yet
Development

No branches or pull requests