-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Data Modeling
-
None
Currently we fetch all of the documents from the sample (100 documents), and then pass them to the mongodb-schema schema analysis:
https://github.com/mongodb-js/compass/blob/1717b9593e4fd6fdd93089a1d88aa81819ecfd68/packages/compass-data-modeling/src/store/analysis-process.ts#L158
To make this more performant and more responsive to cancelling, let's update it to pass the cursor from a sample to the schema analysis so it can async iterate over it. Let's make sure we still only sample 100 documents. This will also help us down the line if we want to make the sample more than 100 documents.
- depends on
-
COMPASS-9150 Change schema sample to pass cursor to analysis, not full doc array
-
- Closed
-
- is depended on by
-
COMPASS-9314 Update analysis to show the work happening and reroute aborted analysis to the diagram list
-
- In Progress
-
- related to
-
COMPASS-9329 Re-evaluate data model schema analysis sample size
-
- Waiting (Blocked)
-