From 262e5721aa91f9fc5996a929973a10b03f9cf9eb Mon Sep 17 00:00:00 2001 From: jwierzbo Date: Thu, 6 Nov 2025 17:21:35 +0100 Subject: [PATCH] Revert previously removed deprecated fields for collection properties --- v2/arangodb/collection_opts.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/v2/arangodb/collection_opts.go b/v2/arangodb/collection_opts.go index 171781f7..b3603f44 100644 --- a/v2/arangodb/collection_opts.go +++ b/v2/arangodb/collection_opts.go @@ -124,9 +124,34 @@ type CollectionExtendedInfo struct { type CollectionProperties struct { CollectionExtendedInfo + // The number of buckets into which indexes using a hash table are split. The default is 16 and this number has to be a power + // of 2 and less than or equal to 1024. For very large collections one should increase this to avoid long pauses when the hash + // table has to be initially built or resized, since buckets are resized individually and can be initially built in parallel. + // For example, 64 might be a sensible value for a collection with 100 000 000 documents. + // Currently, only the edge index respects this value, but other index types might follow in future ArangoDB versions. + // Changes are applied when the collection is loaded the next time. + // + // Deprecated: since 3.7 version. It is related only to MMFiles. + IndexBuckets int `json:"indexBuckets,omitempty"` + + // DoCompact specifies whether or not the collection will be compacted. + // + // Deprecated: since 3.7 version. It is related only to MMFiles. + DoCompact bool `json:"doCompact,omitempty"` + // JournalSize is the maximal size setting for journals / datafiles in bytes. JournalSize int64 `json:"journalSize,omitempty"` + // If true then the collection data is kept in-memory only and not made persistent. + // Unloading the collection will cause the collection data to be discarded. Stopping or re-starting the server will also + // cause full loss of data in the collection. Setting this option will make the resulting collection be slightly faster + // than regular collections because ArangoDB does not enforce any synchronization to disk and does not calculate any + // CRC checksums for datafiles (as there are no datafiles). This option should therefore be used for cache-type collections only, + // and not for data that cannot be re-created otherwise. (The default is false) + // + // Deprecated: since 3.7 version. It is related only to MMFiles. + IsVolatile bool `json:"isVolatile,omitempty"` + // SmartJoinAttribute // See documentation for SmartJoins. // This requires ArangoDB Enterprise Edition.