mirror of
https://github.com/simonw/datasette.git
synced 2026-06-02 15:16:59 +02:00
If someone executes 'select * from table' against a table with a million rows in it, we could run into problems: just serializing that much data as JSON is likely to lock up the server. Solution: we now have a hard limit on the maximum number of rows that can be returned by a query. If that limit is exceeded, the server will return a `"truncated": true` field in the JSON. This limit can be optionally controlled by the new `--max_returned_rows` option. Setting that option to 0 disables the limit entirely. Closes #69
14 lines
455 B
HTML
14 lines
455 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ database }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="hd"><a href="/">home</a> / <a href="/{{ database }}-{{ database_hash }}">{{ database }}</a></div>
|
|
|
|
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_hash and database_hash[:6] }}">{{ database }}</h1>
|
|
|
|
{% if error %}
|
|
<div style="padding: 1em; margin: 1em 0; border: 3px solid red;">{{ error }}</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|