highlights.asciidoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [[release-highlights]]
  2. == What's new in {minor-version}
  3. coming::[{minor-version}]
  4. Here are the highlights of what's new and improved in {es} {minor-version}!
  5. ifeval::[\{release-state}\"!=\"unreleased\"]
  6. For detailed information about this release, see the <<es-release-notes>> and
  7. <<breaking-changes>>.
  8. endif::[]
  9. // Add previous release to the list
  10. Other versions:
  11. {ref-bare}/8.4/release-highlights.html[8.4]
  12. | {ref-bare}/8.3/release-highlights.html[8.3]
  13. | {ref-bare}/8.2/release-highlights.html[8.2]
  14. | {ref-bare}/8.1/release-highlights.html[8.1]
  15. | {ref-bare}/8.0/release-highlights.html[8.0]
  16. // tag::notable-highlights[]
  17. [discrete]
  18. [[speed_up_sql_queries_by_not_tracking_total_hits_by_default]]
  19. === Speed up SQL queries by not tracking total hits by default
  20. SQL query translator now explicitly sets track_total_hits to false when
  21. not needed.
  22. This has a significant impact on SQL query performance in cases where total hits
  23. are not needed to calculate the final result, in particular when the cost of evaluation
  24. of a single document is particularly high (eg. queries that involve script evaluation)
  25. and in queries with a small LIMIT value.
  26. In our tests, on some specific queries, we see a speed-up of more than 50%,
  27. with peaks of ~95% (from 600ms to 20ms).
  28. {es-pull}89106[#89106]
  29. [discrete]
  30. [[ilm_no_longer_rolls_over_empty_indices]]
  31. === ILM no longer rolls over empty indices
  32. For both new and existing Index Lifecycle Management (ILM) policies,
  33. the rollover action will only execute if an index has at least one document.
  34. For indices with a `max_age` condition that are no longer being written
  35. to, this will mean that they will no longer roll over every time their
  36. `max_age` is reached.
  37. A policy can override this behavior, and explicitly opt in to rolling over
  38. empty indices, by adding a `"min_docs": 0` condition:
  39. [source,console]
  40. ----
  41. PUT _ilm/policy/allow_empty_rollover_policy
  42. {
  43. "policy": {
  44. "phases": {
  45. "hot": {
  46. "actions": {
  47. "rollover" : {
  48. "max_age": "7d",
  49. "max_size": "100gb",
  50. "min_docs": 0
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. ----
  58. This can also be disabled on a cluster-wide basis by setting
  59. `indices.lifecycle.rollover.only_if_has_documents` to `false`.
  60. {es-pull}89557[#89557]
  61. [discrete]
  62. [[release_time_series_data_stream_tsds_functionality]]
  63. === Release time series data stream (TSDS) functionality
  64. Elasticsearch offers support for time series data stream (TSDS) indices.
  65. A TSDS index is an index that contains time series metrics data as part
  66. of a data stream. Elasticsearch routes the incoming documents into a TSDS
  67. index so that all the documents for a particular time series are on the
  68. same shard, and then sorts the shard by time series and timestamp. This
  69. structure has a few advantages:
  70. 1. Documents from the same time series are next to each other on the shard, and
  71. hence stored next to each other on the disk, so the operating system pages are
  72. much more homogeneous and compress better, yielding massive reduction in TCO.
  73. 2. The analysis of a time series typically involves comparing each two consecutive
  74. docs (samples), examining the last doc in a given time window, etc., which is quite
  75. complex when the next doc could be on any shard, and in fact on any index. Sorting
  76. by time series and timestamp allows improved analysis, both in terms of performance
  77. and in terms of our ability to add new aggregations.
  78. Finally, as part of the Index Lifecycle Management of metrics data time series,
  79. Elasticsearch enables a Downsampling action. When an index is downsampled,
  80. Elasticsearch keeps a single document with statistical summaries per each bucket
  81. of time in the time series. Supported aggregations can then be run on the data
  82. stream and include both downsampled indices and raw data indices, without the
  83. user needing to be aware of that. Downsampling of downsampled indices, to more
  84. coarse time resolution, is also supported.
  85. {es-pull}90116[#90116]
  86. // end::notable-highlights[]