druid/docs/querying
Gian Merlino a2bad0b3a2
Reduce allocations due to Jackson serialization. (#12468)
* Reduce allocations due to Jackson serialization.

This patch attacks two sources of allocations during Jackson
serialization:

1) ObjectMapper.writeValue and JsonGenerator.writeObject create a new
   DefaultSerializerProvider instance for each call. It has lots of
   fields and creates pressure on the garbage collector. So, this patch
   adds helper functions in JacksonUtils that enable reuse of
   SerializerProvider objects and updates various call sites to make
   use of this.

2) GroupByQueryToolChest copies the ObjectMapper for every query to
   install a special module that supports backwards compatibility with
   map-based rows. This isn't needed if resultAsArray is set and
   all servers are running Druid 0.16.0 or later. This release was a
   while ago. So, this patch disables backwards compatibility by default,
   which eliminates the need to copy the heavyweight ObjectMapper. The
   patch also introduces a configuration option that allows admins to
   explicitly enable backwards compatibility.

* Add test.

* Update additional call sites and add to forbidden APIs.
2022-04-27 14:17:26 -07:00
..
aggregations.md stringFirst and stringLast supported in ingestion (#12466) 2022-04-22 10:28:49 +08:00
caching.md Docs - query caching (#11584) 2022-04-18 17:00:21 +08:00
datasource.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
datasourcemetadataquery.md Refresh query docs. (#9704) 2020-04-15 16:12:20 -07:00
dimensionspecs.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
filters.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
granularities.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
groupbyquery.md Reduce allocations due to Jackson serialization. (#12468) 2022-04-27 14:17:26 -07:00
having.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
hll-old.md De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
joins.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
limitspec.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
lookups.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
multi-value-dimensions.md Adding new config for disabling group by on multiValue column (#12253) 2022-02-16 20:53:26 +05:30
multitenancy.md cleaning up and fixing links (#10528) 2020-12-17 13:37:43 -08:00
post-aggregations.md Document expression post-aggregators (#11896) 2022-04-19 10:36:19 +08:00
query-context.md updated docs for sql query context (#12406) 2022-04-21 11:19:39 -07:00
query-execution.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
querying.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
scan-query.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
searchquery.md fix desc of 'required' for granularity property (#10616) 2020-12-01 18:29:51 -08:00
segmentmetadataquery.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
select-query.md Add "offset" parameter to the Scan query. (#10233) 2020-08-13 14:56:24 -07:00
sorting-orders.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-aggregations.md updated docs for sql query context (#12406) 2022-04-21 11:19:39 -07:00
sql-api.md updated docs for sql query context (#12406) 2022-04-21 11:19:39 -07:00
sql-data-types.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-jdbc.md updated docs for sql query context (#12406) 2022-04-21 11:19:39 -07:00
sql-metadata-tables.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-multivalue-string-functions.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-operators.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-query-context.md updated docs for sql query context (#12406) 2022-04-21 11:19:39 -07:00
sql-scalar.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-syntax.md recommendation for comparing strings and numbers (#12442) 2022-04-18 09:28:32 -07:00
sql-translation.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
timeboundaryquery.md Refresh query docs. (#9704) 2020-04-15 16:12:20 -07:00
timeseriesquery.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
topnmetricspec.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
topnquery.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
troubleshooting.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
using-caching.md Docs - query caching (#11584) 2022-04-18 17:00:21 +08:00
virtual-columns.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00