Only inspect first 100 records for #562

This commit is contained in:
Simon Willison 2019-11-01 12:38:15 -07:00
commit ba5414f16b

View file

@ -295,7 +295,7 @@ class ArrayFacet(Facet):
# Now sanity check that first 100 arrays contain only strings
first_100 = await self.ds.execute(
self.database,
"select {column} from ({sql}) where {column} is not null".format(
"select {column} from ({sql}) where {column} is not null limit 100".format(
column=escape_sqlite(column), sql=self.sql
),
self.params,