html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/2186#issuecomment-1035611864,https://api.github.com/repos/pydata/xarray/issues/2186,1035611864,IC_kwDOAMm_X849ui7Y,1217238,2022-02-10T22:49:40Z,2022-02-10T22:50:01Z,MEMBER,"For what it's wroth, the recommended way to do this is to _explicitly_ close the Dataset with `ds.close()` rather than using `del ds`. Or with a context manager, e.g., ```python for num in range(100): with xr.open_dataset('data.{}.nc'.format(num)) as ds: # do some stuff, but NOT assigning any data in ds to new variables ... ```","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,326533369 https://github.com/pydata/xarray/issues/2186#issuecomment-454162269,https://api.github.com/repos/pydata/xarray/issues/2186,454162269,MDEyOklzc3VlQ29tbWVudDQ1NDE2MjI2OQ==,5635139,2019-01-14T21:09:36Z,2019-01-14T21:09:36Z,MEMBER,"In an effort to reduce the issue backlog, I'll close this, but please reopen if you disagree","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,326533369 https://github.com/pydata/xarray/issues/2186#issuecomment-393996561,https://api.github.com/repos/pydata/xarray/issues/2186,393996561,MDEyOklzc3VlQ29tbWVudDM5Mzk5NjU2MQ==,1217238,2018-06-01T20:13:18Z,2018-06-01T20:13:18Z,MEMBER,This might be the same issue as https://github.com/dask/dask/issues/3530,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,326533369 https://github.com/pydata/xarray/issues/2186#issuecomment-392234293,https://api.github.com/repos/pydata/xarray/issues/2186,392234293,MDEyOklzc3VlQ29tbWVudDM5MjIzNDI5Mw==,1217238,2018-05-26T03:58:14Z,2018-05-26T03:58:14Z,MEMBER,"I might try experimenting with setting `autoclose=True` in `open_mfdataset()`. It's a bit of a short in the dark, but that might help here. Memory growth with `xr.open_dataset('data.nc', chunks=None)` is expected, because by default we set `cache=True` when not using dask. This means that variables get cached in memory as NumPy arrays.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,326533369 https://github.com/pydata/xarray/issues/2186#issuecomment-392108417,https://api.github.com/repos/pydata/xarray/issues/2186,392108417,MDEyOklzc3VlQ29tbWVudDM5MjEwODQxNw==,1197350,2018-05-25T16:17:15Z,2018-05-25T16:17:15Z,MEMBER,"The memory management here is handled by python, not xarray. Python decides when to perform garbage collection. I know that doesn't help solve your problem... ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,326533369