Skip to content

Commit

Permalink
add two indexes recommended by atlas (#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
severo authored Nov 10, 2023
1 parent 44fbe72 commit bc8bdcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/libcommon/src/libcommon/simple_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ class CachedResponseDocument(Document):
("dataset", "kind", "http_status"),
("kind", "http_status", "error_code"),
("kind", "http_status", "_id"),
("kind", "_id"), # < recommended by Atlas, for find "kind: dataset-hub-cache", sort "_id: 1"
("kind", "_id"), # < recommended by Atlas
("details.cause_exception", "error_code", "details.copied_from_artifact"), # < recommended by Atlas
("http_status", "error_code", "kind", "updated_at"), # < recommended by Atlas
],
}
objects = QuerySetManager["CachedResponseDocument"]()
Expand Down

0 comments on commit bc8bdcb

Please sign in to comment.