@@ -6,7 +6,6 @@ import {shallowEqual} from 'react-redux';
66import { ResponseError } from '../../../../components/Errors/ResponseError' ;
77import { TableIndexInfo } from '../../../../components/InfoViewer/schemaInfo' ;
88import { Loader } from '../../../../components/Loader' ;
9- import { olapApi } from '../../../../store/reducers/olapStats' ;
109import { overviewApi } from '../../../../store/reducers/overview/overview' ;
1110import {
1211 selectSchemaMergedChildrenPaths ,
@@ -17,11 +16,7 @@ import {useAutoRefreshInterval, useTypedSelector} from '../../../../utils/hooks'
1716import { ExternalDataSourceInfo } from '../../Info/ExternalDataSource/ExternalDataSource' ;
1817import { ExternalTableInfo } from '../../Info/ExternalTable/ExternalTable' ;
1918import { ViewInfo } from '../../Info/View/View' ;
20- import {
21- isColumnEntityType ,
22- isEntityWithMergedImplementation ,
23- isTableType ,
24- } from '../../utils/schema' ;
19+ import { isEntityWithMergedImplementation } from '../../utils/schema' ;
2520
2621import { AsyncReplicationInfo } from './AsyncReplicationInfo' ;
2722import { ChangefeedInfo } from './ChangefeedInfo' ;
@@ -36,13 +31,17 @@ interface OverviewProps {
3631function Overview ( { type, path} : OverviewProps ) {
3732 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
3833
39- const olapParams = isTableType ( type ) && isColumnEntityType ( type ) ? { path} : skipToken ;
40- const { currentData : olapData , isFetching : olapIsFetching } = olapApi . useGetOlapStatsQuery (
41- olapParams ,
42- { pollingInterval : autoRefreshInterval } ,
43- ) ;
44- const olapStatsLoading = olapIsFetching && olapData === undefined ;
45- const { result : olapStats } = olapData || { result : undefined } ;
34+ // FIXME: The request is too heavy, stats table may have millions of items
35+ // Disabled until fixed
36+ // https://github.com/ydb-platform/ydb-embedded-ui/issues/907
37+ // https://github.com/ydb-platform/ydb-embedded-ui/issues/908
38+ // const olapParams = isTableType(type) && isColumnEntityType(type) ? {path} : skipToken;
39+ // const {currentData: olapData, isFetching: olapIsFetching} = olapApi.useGetOlapStatsQuery(
40+ // olapParams,
41+ // {pollingInterval: autoRefreshInterval},
42+ // );
43+ // const olapStatsLoading = olapIsFetching && olapData === undefined;
44+ // const {result: olapStats} = olapData || {result: undefined};
4645
4746 const isEntityWithMergedImpl = isEntityWithMergedImplementation ( type ) ;
4847
@@ -71,7 +70,8 @@ function Overview({type, path}: OverviewProps) {
7170
7271 const { error : schemaError } = useGetSchemaQuery ( { path} ) ;
7372
74- const entityLoading = overviewLoading || olapStatsLoading ;
73+ // overviewLoading || olapStatsLoading
74+ const entityLoading = overviewLoading ;
7575 const entityNotReady = isEntityWithMergedImpl && ! mergedChildrenPaths ;
7676
7777 const renderContent = ( ) => {
@@ -99,7 +99,11 @@ function Overview({type, path}: OverviewProps) {
9999
100100 return (
101101 ( type && pathTypeToComponent [ type ] ?.( ) ) || (
102- < TableInfo data = { data } type = { type } olapStats = { olapStats } />
102+ < TableInfo
103+ data = { data }
104+ type = { type }
105+ // olapStats={olapStats}
106+ />
103107 )
104108 ) ;
105109 } ;
0 commit comments