> On Jan. 20, 2025, 2:24 p.m., Pinal Shah wrote: > > Ship It!
fix below - Pinal ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/75014/#review227185 ----------------------------------------------------------- On Jan. 20, 2025, 6:23 a.m., Paresh Devalia wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/75014/ > ----------------------------------------------------------- > > (Updated Jan. 20, 2025, 6:23 a.m.) > > > Review request for atlas, Mandar Ambawane and Pinal Shah. > > > Bugs: ATLAS-4867 > https://issues.apache.org/jira/browse/ATLAS-4867 > > > Repository: atlas > > > Description > ------- > > Metrics API : http://<>/api/atlas/admin/metrics > > 1. There is some information in the Metrics API response, which is not been > used like Count of the typeAndSubTypes, Active, deleted, Shell > Approach: > Identify time taken by the above counts > Take reading of metric api > Take reading of metric api without the above counts > > > Diffs > ----- > > repository/src/main/java/org/apache/atlas/services/MetricsService.java > 9ec2cd2cb > > > Diff: https://reviews.apache.org/r/75014/diff/3/ > > > Testing > ------- > > With typeAndSubTypes data it took 4578ms for Active (22,994,801), Deleted > (139,398) and Shell (166,280) for Metric API > First Time -> Without typeAndSubTypes data, it took 2927ms for Metric API > Then two subsequent request took around 2389ms and 2234ms for metric API. > > +--------------------------------------------------------+--------------------------+-------------------------------+ > | | Time taken first > request | Time taken subsequent request | > | typeAndSubTypes, Active, deleted, Shell in Metric API | > | | > +========================================================+==========================+===============================+ > | With typeAndSubTypes | 4578ms > | 4152ms and 3914ms | > +--------------------------------------------------------+--------------------------+-------------------------------+ > | Without typeAndSubTypes | 2927ms > | 2389ms and 2234ms | > +--------------------------------------------------------+--------------------------+-------------------------------+ > > > PC build:- > https://ci-builds.apache.org/job/Atlas/job/PreCommit-ATLAS-Build-Test/1715/ > > > Thanks, > > Paresh Devalia > >