Speed up the dashboard
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- data-visualization, performance
Hướng nghiên cứu
Bắt đầu bằng cách lập hồ sơ hiệu năng của dashboard với các bộ dữ liệu CSV 1,6MB và 3,3MB, tập trung vào quá trình xử lý ban đầu và các lựa chọn của bản đồ color-by. Đọc tài liệu về hiệu năng của Dash và so sánh các tùy chọn caching, Patch Class, orjson và clientside callback được đề cập. Hoàn thành có nghĩa là xác định được nút thắt cổ chai và chứng minh việc tải nhanh hơn cũng như cập nhật bản đồ nhanh hơn mà không làm hỏng dashboard.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, the dashboard starts to slow down with datasets at about 1.6MB, this becomes more pronounced by 3.3MB (CSV with about 12,000 rows by 15 columns).
The slow down is most pronounced in
- Initial processing of the dataset (hence we have a loading indicator).
- Selecting different color-by options for the map distribution; the change in the map has a pronounced delay.
Diagnosing the specific source of the slow down (if it's one or more reasons) is still required.
The Dash documentation provides various suggestions under their performance section, and the dash-extensions package also has some options:
- Flask caching. Since the processing is only done once, this would only have potential to speed up the graphing components, though initial testing didn't seem to show improvement.
a. A similar solution is background caching.
b. Dash-extensions has a package for server-side caching: ServersideOutput Transform. This removes the need for JSON serialization between callbacks and should speed things up, though I'm not sure how effective it was (I tried an implementation on the server-store branch). This would also require a regular clean-up of the cached files (as with the previous two). - Dash Patch Class for updating the map (and potentially other graphs as well). Plotly express is fast, but starts to slow down around 15K points (per dash performance docs). I attempted to implement this with the map, but my initial attempt was unsuccessful.
- Using orjson. I'm unclear on precisely how this potential solution works, it seems (and this) that having the package installed allows dash to serialize json strings with orjson instead. There are errors thrown if you try to use it for the serialization (the speedup comes from the fact that it's bytes).
- Clientside Callbacks. To implement this, the graphing portion would have to be translated into Javascript.
- Ngôn ngữ chính
- Python
- Star
- 6
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Imageomics/dashboard-prototype
-
enhancement help wanted question UX
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
organization
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Filtering QuestionsĐang mởquestion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
enhancement question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của Imageomics/dashboard-prototype
Issue tương tự
-
automated endpoint-dead needs-curation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
almanac-data/climate-almanac#138 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
OceanDataTools/openrvdas#760 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
level/subtask type/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
wazuh/wazuh-virtual-machines#1091 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python: Bug: ChatMessageContent.from_element drops AudioContent and BinaryContent into raw TextContentCó thể đã có người làm @halcyon-past đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/semantic-kernel#14824 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
stack314/django-neolith#142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày