mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New _nocount=1 option, used to speed up CSVs - closes #1353
This commit is contained in:
parent
8bde6c5461
commit
fd368d3b2c
5 changed files with 34 additions and 5 deletions
|
|
@ -175,3 +175,9 @@ def test_table_csv_stream_does_not_calculate_facets(app_client):
|
|||
response = app_client.get("/fixtures/simple_primary_key.csv?_trace=1")
|
||||
soup = Soup(response.text, "html.parser")
|
||||
assert "select content, count(*) as n" not in soup.find("pre").text
|
||||
|
||||
|
||||
def test_table_csv_stream_does_not_calculate_counts(app_client):
|
||||
response = app_client.get("/fixtures/simple_primary_key.csv?_trace=1")
|
||||
soup = Soup(response.text, "html.parser")
|
||||
assert "select count(*)" not in soup.find("pre").text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue