Datagrip is the IE of the @jetbrains product family. I really want to like it, but it’s just not stable enough. DBVis feels like a more stable product—but it’s very 1999.
Does it hang on query execution or when editing a file? Please try to set syntax highlighting for such a file from inspection to "syntax" or even "none": https://www.jetbrains.com/help/idea/changing-highlighting-level-for-the-current-file.html … Does it help?