@@ -6,7 +6,6 @@ import {shallowEqual} from 'react-redux';
6
6
import { ResponseError } from '../../../../components/Errors/ResponseError' ;
7
7
import { TableIndexInfo } from '../../../../components/InfoViewer/schemaInfo' ;
8
8
import { Loader } from '../../../../components/Loader' ;
9
- import { olapApi } from '../../../../store/reducers/olapStats' ;
10
9
import { overviewApi } from '../../../../store/reducers/overview/overview' ;
11
10
import {
12
11
selectSchemaMergedChildrenPaths ,
@@ -17,11 +16,7 @@ import {useAutoRefreshInterval, useTypedSelector} from '../../../../utils/hooks'
17
16
import { ExternalDataSourceInfo } from '../../Info/ExternalDataSource/ExternalDataSource' ;
18
17
import { ExternalTableInfo } from '../../Info/ExternalTable/ExternalTable' ;
19
18
import { ViewInfo } from '../../Info/View/View' ;
20
- import {
21
- isColumnEntityType ,
22
- isEntityWithMergedImplementation ,
23
- isTableType ,
24
- } from '../../utils/schema' ;
19
+ import { isEntityWithMergedImplementation } from '../../utils/schema' ;
25
20
26
21
import { AsyncReplicationInfo } from './AsyncReplicationInfo' ;
27
22
import { ChangefeedInfo } from './ChangefeedInfo' ;
@@ -36,13 +31,17 @@ interface OverviewProps {
36
31
function Overview ( { type, path} : OverviewProps ) {
37
32
const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
38
33
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};
46
45
47
46
const isEntityWithMergedImpl = isEntityWithMergedImplementation ( type ) ;
48
47
@@ -71,7 +70,8 @@ function Overview({type, path}: OverviewProps) {
71
70
72
71
const { error : schemaError } = useGetSchemaQuery ( { path} ) ;
73
72
74
- const entityLoading = overviewLoading || olapStatsLoading ;
73
+ // overviewLoading || olapStatsLoading
74
+ const entityLoading = overviewLoading ;
75
75
const entityNotReady = isEntityWithMergedImpl && ! mergedChildrenPaths ;
76
76
77
77
const renderContent = ( ) => {
@@ -99,7 +99,11 @@ function Overview({type, path}: OverviewProps) {
99
99
100
100
return (
101
101
( type && pathTypeToComponent [ type ] ?.( ) ) || (
102
- < TableInfo data = { data } type = { type } olapStats = { olapStats } />
102
+ < TableInfo
103
+ data = { data }
104
+ type = { type }
105
+ // olapStats={olapStats}
106
+ />
103
107
)
104
108
) ;
105
109
} ;
0 commit comments