Repository navigation
Commit 4144a3e
authored
perf: remove two redundant object-store calls in datasets metadata fetch (#1760)
get_manifest_list fetched the base stream.json unconditionally, but on
Query/Prism-mode nodes that result was never read since those modes
merge every ingestor's stream.json instead. Move the fetch into the
branch that actually needs it (Mode::All).
get_first_and_latest_event_from_storage awaited its two independent
extract_timestamp_for_date calls sequentially. Run them concurrently
with try_join! instead.
Both are part of the object-store I/O behind POST /api/prism/v1/datasets,
which has been observed taking 50s+ on multi-TB, multi-day deployments.1 parent ee024e5 commit 4144a3e
2 files changed
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | 801 | | |
810 | 802 | | |
811 | 803 | | |
| |||
826 | 818 | | |
827 | 819 | | |
828 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
941 | 939 | | |
942 | 940 | | |
943 | 941 | | |
| |||
0 commit comments