cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

ui: Statements screen hides too much information

Open nstewart opened this issue 8 years ago • 5 comments

screen shot 2018-06-26 at 8 39 04 pm

When trying to track down a slow query, it was a bit frustrating to have to hover over many rows (and wait half a second for the pop up on each one) just to find enough information to take action or identify a slow query. In the image above we show select from rides many times but its not clear what is what. I get that a full fingerprint may be very long, but perhaps there is a design solution to further disambiguate?

Link to the [spreadsheet] and figma (https://docs.google.com/spreadsheets/d/1eCxVMjGBerZKFEZryndyRa0LPkmKyv6NF08D7uTZXw8/edit#gid=883608253) highlighting new formats to disambiguate various statement types.

CRDB-6565

nstewart avatar Jun 27 '18 16:06 nstewart

My initial idea with that summary was to add more details on a per-statement type basis, but that's something we haven't gotten to.

As an aside, on my branch I've replaced the default tooltip that's in the alpha with our immediately-displaying custom one.

couchand avatar Jun 28 '18 14:06 couchand

@Annebirzin I think this can be folded into work you are already thinking about with the statement details and truncating the statement itself

awoods187 avatar Feb 01 '21 16:02 awoods187

7/19 triage - We've had quite a few improvements to the overview page including additional filtering drop-down options. We've also added a custom column selector as well in the upcoming release.

@Annebirzin, were there any additional improvements to address this issue? If not, we can close this item.

kevin-v-ngo avatar Jul 19 '21 15:07 kevin-v-ngo

@kevin-v-ngo I don't think we've totally solved the issue of disambiguating similar select statements (without relying on a tooltip). The tooltip should be faster now so curious if that helps.

One thing we talked about was including more of the SQL text truncated either before or after the FROM command

For example, this statement could be formatted as: SELECT id, balance FROM accounts

Screen Shot 2021-07-19 at 2 23 34 PM

Or this statement could be formatted as: SELECT range_id, CAST(substring... FROM TABLE (the '...' indicating there is more text before the FROM command)

Screen Shot 2021-07-19 at 2 19 04 PM

If room we could also include more SQL text after the FROM command.

In this example we could probably fit the full statement: SELECT * FROM accounts WHERE id IN (_,_)

Screen Shot 2021-07-19 at 2 03 15 PM

Annebirzin avatar Jul 19 '21 19:07 Annebirzin

Issue has been updated to include updated statement type rules and mockups. From triage, this is potentially a quick win.

kevin-v-ngo avatar Aug 13 '21 02:08 kevin-v-ngo