OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Slow presentation of Column Profile for table in web UI on OM 1.7.5

Open teabbs opened this issue 1 year ago • 1 comments

Affected module The main catalog service (backend) and partly the web UI.

Describe the bug We have recenlty upgraded OM from 1.5.10 to 1.7.5. Now, with 850000+ records in table profile_data_time_series, the UI is slow to present the column profile for a table. It takes about 30 secs. At this moment on the DB side there is a running query /* ProfilerDataTimeSeriesDAO.getLatestExtension */ SELECT json FROM profiler_data_time_series WHERE entityFQNHash = $1 AND extension = $2 ORDER BY timestamp DESC LIMIT 1. On Slack we were given a suggestion to increase the number for DB pooling, but doubling it gave no result.

To Reproduce We are not sure about if running profiling job on OM 1.7.5 many times will yield same results. We ran profiling jobs on 1.5.10, and then upgraded to 1.7.5

Expected behavior The profile loads in <5 secs.

Version:

  • OS: Oracle Linux 8.5
  • OpenMetadata version: 1.7.5
  • OpenMetadata Ingestion package version: 1.7.5
  • OM DB: PostgreSQL 15.6

teabbs avatar Jul 29 '25 17:07 teabbs

@teabbs we'll address this by allowing you to set retention on the profile data https://github.com/open-metadata/OpenMetadata/issues/20463. This should allow you to keep historical data in a cold storage (S3 for example) and recent data in the application db

TeddyCr avatar Sep 16 '25 06:09 TeddyCr