home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 929818771 and user = 14371165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • Illviljan · 2 ✖

issue 1

  • Very poor html repr performance on large multi-indexes · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
868767399 https://github.com/pydata/xarray/issues/5529#issuecomment-868767399 https://api.github.com/repos/pydata/xarray/issues/5529 MDEyOklzc3VlQ29tbWVudDg2ODc2NzM5OQ== Illviljan 14371165 2021-06-25T18:52:37Z 2021-06-25T18:52:37Z MEMBER

One way of solving it could be to slice the arrays to a smaller size but still showing the same repr. Because coords[0:12] seems easy to print, not sure how tricky it is to slice it in this way though.

I'm using https://github.com/spyder-ide/spyder for the profiling and general hacking.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Very poor html repr performance on large multi-indexes 929818771
868735859 https://github.com/pydata/xarray/issues/5529#issuecomment-868735859 https://api.github.com/repos/pydata/xarray/issues/5529 MDEyOklzc3VlQ29tbWVudDg2ODczNTg1OQ== Illviljan 14371165 2021-06-25T17:54:00Z 2021-06-25T17:54:00Z MEMBER

I think it's some lazy calculation that kicks in. Because I can reproduce using np.asarray.

```python import numpy as np import xarray as xr

ds = xr.tutorial.load_dataset("air_temperature") da = ds["air"].stack(z=[...])

coord = da.z.variable.to_index_variable()

This is very slow:

a = np.asarray(coord)

da.repr_html() ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Very poor html repr performance on large multi-indexes 929818771

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 5998.491ms · About: xarray-datasette