issue_comments: 851117233

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1345#issuecomment-851117233 https://api.github.com/repos/simonw/datasette/issues/1345 851117233 MDEyOklzc3VlQ29tbWVudDg1MTExNzIzMw== 9599 2021-05-31T02:04:35Z 2021-05-31T02:04:35Z OWNER

That long-term solution may not be too difficult. The facets are calculated against sql_no_limit which is constructed here:

https://github.com/simonw/datasette/blob/7b106e106000713bbee31b34d694b3dadbd4818c/datasette/views/table.py#L659-L665

And used here:

https://github.com/simonw/datasette/blob/7b106e106000713bbee31b34d694b3dadbd4818c/datasette/views/table.py#L706-L718

Crucially, sql_no_limit is ONLY used for faceting - nothing else uses it anywhere. So constructing it before constructing sql and taking ?_col= and ?_nocol= into account may not be a complex change.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
904071938