add words about setting to docs

This commit is contained in:
FArthur-cmd 2022-09-05 13:20:49 +00:00
parent 26eb6cdaec
commit 7f311ad03c
2 changed files with 4 additions and 2 deletions

View File

@ -7,8 +7,8 @@ option(ENABLE_ANNOY "Enable Annoy index support" ${ENABLE_LIBRARIES})
# Problem with aligment can lead to errors like
# (https://stackoverflow.com/questions/46790550/c-undefined-behavior-strict-aliasing-rule-or-incorrect-alignment)
# or will lead to crash on arm https://developer.arm.com/documentation/ka003038/latest
# This issues should be resolved before annoy became non-experimental
if ((NOT ENABLE_ANNOY) OR (SANITIZE STREQUAL "undefined") OR (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm"))
# This issues should be resolved before annoy became non-experimental (--> setting "allow_experimental_annoy_index")
if ((NOT ENABLE_ANNOY) OR (SANITIZE STREQUAL "undefined") OR (ARCH_AARCH64))
message (STATUS "Not using annoy")
return()
endif()

View File

@ -46,6 +46,8 @@ Both types of queries are handled the same way. The indexes get `n` neighbors (w
## Create table with ANNIndex
This feature is disabled by default. To enable it, set `allow_experimental_annoy_index` to 1. Also, this feature is disabled for arm, due to likely problems with the algorithm.
```sql
CREATE TABLE t
(