home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 1340474484 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • andersy005 2
  • lassiterdc 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • Writing a netCDF file is slow · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1216913006 https://github.com/pydata/xarray/issues/6920#issuecomment-1216913006 https://api.github.com/repos/pydata/xarray/issues/6920 IC_kwDOAMm_X85IiJ5u andersy005 13301940 2022-08-16T17:05:24Z 2022-08-16T17:05:24Z MEMBER

Great... keep us posted once you have a working solution.

I'm going to convert this issue in a discussion instead.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Writing a netCDF file is slow 1340474484
1216907148 https://github.com/pydata/xarray/issues/6920#issuecomment-1216907148 https://api.github.com/repos/pydata/xarray/issues/6920 IC_kwDOAMm_X85IiIeM lassiterdc 64621312 2022-08-16T16:59:47Z 2022-08-16T16:59:47Z NONE

Thanks, @andersy005. I think that xr.save_mfdataset() could certainly be helpful in my workflow but unfortunately, I have to consolidate these data from a netcdf for each 2-minute timestep to a netcdf for each day, and it sounds like there's no way around that bottleneck. I've come across suggestions to save the dataset to a zarr group and then export as a netcdf, so I'm going to give that a shot.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Writing a netCDF file is slow 1340474484
1216820021 https://github.com/pydata/xarray/issues/6920#issuecomment-1216820021 https://api.github.com/repos/pydata/xarray/issues/6920 IC_kwDOAMm_X85IhzM1 andersy005 13301940 2022-08-16T15:46:44Z 2022-08-16T15:46:44Z MEMBER

@lassiterdc, writing large, chunked xarray dataset to a netCDF file is always a challenge and quite slow since the write is serial. However, you could take advantage of the xr.save_mfdataset() function to write to multiple netCDF files. here's a good example that showcase how to achieve this: https://ncar.github.io/esds/posts/2020/writing-multiple-netcdf-files-in-parallel-with-xarray-and-dask

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Writing a netCDF file is slow 1340474484

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 221.89ms · About: xarray-datasette