GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: note composite vector index as future optimization · feast-dev/feast@beaa3e9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • sdk/python/feast/infra/online_stores/mongodb_online_store
    • mongodb.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎sdk/python/feast/infra/online_stores/mongodb_online_store/mongodb.py‎

Copy file name to clipboardExpand all lines: sdk/python/feast/infra/online_stores/mongodb_online_store/mongodb.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,15 @@ def _ensure_vector_indexes(
501501
tables: Sequence[Union[BatchFeatureView, StreamFeatureView, FeatureView]],
502502
online_config: MongoDBOnlineStoreConfig,
503503
) -> None:
504-
"""Create Atlas vector search indexes for vector-indexed fields if they don't exist."""
504+
"""Create Atlas vector search indexes for vector-indexed fields if they don't exist.
505+
506+
Currently creates one index per (feature_view, vector_field) pair.
507+
A future optimization could consolidate all vector fields into a
508+
single composite index with multiple field definitions, reducing
509+
cluster-wide index count and memory overhead. See Atlas limits:
510+
hard cap of 2,500 search indexes per cluster; smaller tiers (M10)
511+
may degrade well before that.
512+
"""
505513
db = collection.database
506514
if collection.name not in db.list_collection_names():
507515
db.create_collection(collection.name)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.