@@ -103,7 +103,11 @@ Conclusion: larger chunks gave only marginal gains. Further optimization should |
||
| 103 | 103 |
### 2026-06-02 After Direct Inserts For New Archive Samples |
| 104 | 104 |
|
| 105 | 105 |
Commit: `44d9ebd` (`Use direct inserts for new archive samples`) |
| 106 |
-Source: no real-device import report yet. |
|
| 106 |
+Source: no comparable first-import real-device report yet. |
|
| 107 |
+ |
|
| 108 |
+Note: a later user-provided report looked significantly faster, but it was a |
|
| 109 |
+reimport rather than a fresh first snapshot. Do not use it as a direct comparison |
|
| 110 |
+against first-import runs. |
|
| 107 | 111 |
|
| 108 | 112 |
Expected signal: |
| 109 | 113 |
- `Heart Rate insertElapsed` should drop first; |
@@ -125,11 +129,11 @@ Expected signal: |
||
| 125 | 129 |
| 2026-06-02 | `bcbf9a5` | Cleaned up import diagnostic timings. | Corrected date-fetch wall-clock measurement and report text. | |
| 126 | 130 |
| 2026-06-02 | `a026566` | Batched initial import archive writes across several fetched pages. | Wall clock improved from about 20m25s to 18m21s on the measured first import. | |
| 127 | 131 |
| 2026-06-02 | `c138b7b` | Increased initial import write chunk sizes. | Marginal improvement: summed insert from 15m44s to 15m24s on the next comparable run. | |
| 128 |
-| 2026-06-02 | `44d9ebd` | Used direct inserts for dependent rows when `samples` creates a new sample. | Awaiting real-device report. Tests passed. | |
|
| 132 |
+| 2026-06-02 | `44d9ebd` | Used direct inserts for dependent rows when `samples` creates a new sample. | Awaiting comparable first-import real-device report. Tests passed. | |
|
| 129 | 133 |
|
| 130 | 134 |
## Current Diagnosis |
| 131 | 135 |
|
| 132 |
-The import is no longer primarily a HealthKit fetch problem. On the latest measured run: |
|
| 136 |
+The import is no longer primarily a HealthKit fetch problem. On the latest comparable first-import measured run: |
|
| 133 | 137 |
|
| 134 | 138 |
- total wall clock was 18m30s; |
| 135 | 139 |
- summed fetch was only 46.8s; |