|
Download sys/sys-0035.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0035.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0035.jsonl
-
curl -L -o sys-0035.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0035.jsonl
1.17 kB
| {"type": "session", "harness": "opencode", "id": "sys-0035", "name": "MongoDB Shard Filtering"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}} | |
| {"type": "message", "message": {"role": "user", "content": "How does MongoDB filter documents during sharded queries?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "MongoDB uses two mechanisms to handle orphaned documents:\n\n1. ShardFilterStage (classic engine):\n - Drops documents not belonging to this shard\n - Holds ScopedCollectionFilter preventing deletion during active queries\n - Uses ShardFiltererImpl for shard key evaluation\n\n2. OrphanChunkSkipper (index/distinct scans):\n - Detects orphan keys during seeks\n - Seeks to next owned chunk boundary\n - Returns Info enum: NotOrphan/CanSkipOrphans/NoMoreOwned\n\nAggregation pipeline sharding:\n- InternalShredDocumentsStage: distributes documents across shards\n- InternalSplitPipelineStage: splits pipeline for scatter-gather\n- ExchangeStage: exchange-based parallelism\n\nWrite path references: oplog writes, read concern levels, transaction coordinator integration."}} | |