Affected rows行为

本文主要描述了 PolarDB-X 中的affected rows行为。注意事项 PolarDB-X 从5.4.17-16921956版本开始对DML在useAffectedRows=true情况下的affected rows进行兼容性适配。PolarDB-X 分布式场景下,逻辑DML执行较为复杂,affected rows行为和...

Quick BI数据集加速同步提示rows number over the ...

问题描述 Quick BI数据集加速同步提示rows number over the limit。问题原因 高级版用户单表限制抽取100万条,抽取的数据条数超过了限制。解决方案 取消直接抽取明细,针对业务场景展示需要将明细数据进行汇总后在抽取。适用于 Quick BI ...

Quick BI数据集引擎加速报错“rows number over the ...

问题描述 Quick BI数据集引擎加速报错“rows number over the limit|limit:10,000,000”。问题原因 抽取上限是1000万行,而本次抽取,将会达到16,236,221 行,超出上限报错。解决方案 勾选按日期加速,选择抽取天数约束一下抽取上限,维持...

使用SQL查询数据时报错The sql scanned rows of main ...

问题现象 使用SQL查询数据时出现如下报错:[Message]:The sql scanned rows of main table exceeds the quota,main table rows quota is 100000 可能原因 如果使用SQL查询数据时使用的条件为非分区键,则会造成全表扫描数据,可能会出现...

HINT

执行计划 QUERY PLAN Hash Join(cost=0.00.10.00 rows=1 width=4)Hash Cond:(t1.a=t2.a)->Gather(cost=0.00.5.00 rows=1 width=4)->Local Gather(cost=0.00.5.00 rows=1 width=4)->Seq Scan on t1(cost=0.00.5.00 rows=1 width=4)->Hash...

通过EXPLAIN和EXPLAIN ANALYZE分析执行计划

per task:avg.:32.00 std.dev.:0.00 Output layout:[count]Output partitioning:SINGLE[]Aggregate(FINAL)│Outputs:[count:bigint]│Estimates:{rows:1(8B)}│Output:2 rows(18B),PeakMemory:24B(0.00%),WallTime:70.39us(0.03%)│count:=...

dbms_sql.reset_trace_stats

0 MIN_EXEC_TIME:0 MAX_EXEC_TIME:0 SUM_ROWS_SENT:0 MIN_ROWS_SENT:0 MAX_ROWS_SENT:0 SUM_ROWS_EXAMINED:0 MIN_ROWS_EXAMINED:0 MAX_ROWS_EXAMINED:0 SUM_ROWS_AFFECTED:0 MIN_ROWS_AFFECTED:0 MAX_ROWS_AFFECTED:0 SUM_LOGICAL_READ:0 ...

Joining Relations Hints

QUERY PLAN-Hash Join(cost=21.45.81463.06 rows=2014215 width=12)Hash Cond:(a.bid=b.bid)->Seq Scan on pgbench_accounts a(cost=0.00.53746.15 rows=2014215 width=12)->Hash(cost=21.20.21.20 rows=20 width=4)->Seq Scan on pgbench_...

Joining Relations Hints

QUERY PLAN-Hash Join(cost=21.45.81463.06 rows=2014215 width=12)Hash Cond:(a.bid=b.bid)->Seq Scan on pgbench_accounts a(cost=0.00.53746.15 rows=2014215 width=12)->Hash(cost=21.20.21.20 rows=20 width=4)->Seq Scan on pgbench_...

Global Hints

QUERY PLAN-Hash Join(cost=1.32.2.64 rows=13 width=22)Hash Cond:(a.mgr=emp.empno)->Seq Scan on emp a(cost=0.00.1.14 rows=14 width=16)->Hash(cost=1.14.1.14 rows=14 width=11)->Seq Scan on emp(cost=0.00.1.14 rows=14 width=11)...

执行计划调优

举例分析 Update(cost=0.00.1274.11 rows=1 width=1)(actual time=995096.707.1517097.191 rows=245136 loops=1)Executor Memory:1kB Segments:96 Max:1kB(segment 0)->Partition Selector for t2(cost=0.00.1274.04 rows=1 width=842)...

Global Hints

QUERY PLAN-Hash Join(cost=1.32.2.64 rows=13 width=22)Hash Cond:(a.mgr=emp.empno)->Seq Scan on emp a(cost=0.00.1.14 rows=14 width=16)->Hash(cost=1.14.1.14 rows=14 width=11)->Seq Scan on emp(cost=0.00.1.14 rows=14 width=11)...

全匹配查询

name,index_name,SearchQuery(query,next_token=next_token,limit=100,get_total_count=True),columns_to_get=ColumnsToGet(['k','t','g','ka','la'],ColumnReturnType.SPECIFIED))all_rows.extend(search_response.rows)first_page=False ...

使用EXPLAIN查看并行计划

nodes:16)(cost=103382.56 rows=1029632)->Nested loop inner join(cost=409.36 rows=4022)->Filter:(nation.N_NAME='IRAN')(cost=2.29 rows=3)->Table scan on nation(cost=2.29 rows=25)->Parallel index lookup on supplier using ...

分区连接

a.date->Append(cost=0.00.71.20 rows=2080 width=40)->Seq Scan on sales_y2023q1 a(cost=0.00.15.20 rows=520 width=40)->Seq Scan on sales_y2023q2 a_1(cost=0.00.15.20 rows=520 width=40)->Seq Scan on sales_y2023q3 a_2(cost=0.00....

分区连接

a.date->Append(cost=0.00.71.20 rows=2080 width=40)->Seq Scan on sales_y2023q1 a(cost=0.00.15.20 rows=520 width=40)->Seq Scan on sales_y2023q2 a_1(cost=0.00.15.20 rows=520 width=40)->Seq Scan on sales_y2023q3 a_2(cost=0.00....

dbms_sql.add_trace

TIME:925 MIN_EXEC_TIME:438 MAX_EXEC_TIME:487 SUM_ROWS_SENT:106 MIN_ROWS_SENT:8 MAX_ROWS_SENT:98 SUM_ROWS_EXAMINED:108 MIN_ROWS_EXAMINED:8 MAX_ROWS_EXAMINED:100 SUM_ROWS_AFFECTED:0 MIN_ROWS_AFFECTED:0 MAX_ROWS_AFFECTED:0 ...

DescribeIMVInfos-查询实时物化视图详情

outerjoin_calc_rows\":null,\"avg_outerjoin_calc_time\":null,\"avg_outerjoin_delta_rows\":null,\"min_outerjoin_apply_time\":null,\"min_outerjoin_calc_rows\":null,\"min_outerjoin_calc_time\":null,\"min_outerjoin_delta_rows\...

计划加速

hash_sys0103 a_1(cost=0.00.19.59 rows=959 width=4)(actual time=0.001.0.001 rows=0 loops=1)->Parallel Seq Scan on part_hash_sys0104 a_2(cost=0.00.19.59 rows=959 width=4)(actual time=0.001.0.001 rows=0 loops=1).->Sort(cost=...

计划加速

hash_sys0103 a_1(cost=0.00.19.59 rows=959 width=4)(actual time=0.001.0.001 rows=0 loops=1)->Parallel Seq Scan on part_hash_sys0104 a_2(cost=0.00.19.59 rows=959 width=4)(actual time=0.001.0.001 rows=0 loops=1).->Sort(cost=...

分区裁剪

segments:3)(cost=0.00.431.00 rows=1 width=4)(actual time=1.047.1.196 rows=3 loops=1)->Aggregate(cost=0.00.431.00 rows=1 width=4)(actual time=0.012.0.012 rows=1 loops=1)->Seq Scan on t1(cost=0.00.431.00 rows=1 width=4)...

Table

} Rows ActiveDocument.Tables.Item(Index).Rows 获取指定表格的所有行。重要 JS-SDK V1.1.10及以上版本支持此功能。仅PC端支持此功能。语法 表达式.ActiveDocument.Tables.Item(Index).Rows 表达式:文档类型应用对象 示例 async function...

物化视图

word-cater caterpillar Caterpillar caterpillars caterpillar's Caterpillar's caterer caterer's caters catered(10 rows)Limit(cost=11583.61.11583.64 rows=10 width=32)(actual time=1431.591.1431.594 rows=10 loops=1)->Sort(cost=...

列组统计信息

segments:3)(cost=137814.33.154481.00 rows=1000000 width=20)(actual time=3986.143.4014.601 rows=100001 loops=1)->HashAggregate(cost=137814.33.141147.67 rows=333333 width=20)(actual time=3977.037.4002.222 rows=33661 loops=1)...

Left join优化改写为Right join

}│Output:96 rows(864B),PeakMemory:96B(0.00%),WallTime:88.21ms(0.88%)│count_2:=count(*)└─LEFT Join[(`n_nationkey`=`c_nationkey`)][$hashvalue,$hashvalue_0_4]│Outputs:[]│Estimates:{rows:15000000(0B)}│Output:30000000 ...

利用JIT加速计算

segments:3)(cost=453326.83.453326.88 rows=3 width=32)(actual time=13064.601.13444.006 rows=3 loops=1)->Partial Aggregate(cost=453326.83.453326.84 rows=1 width=32)(actual time=13443.451.13443.452 rows=1 loops=1)->Seq Scan ...

分区剪枝

QUERY PLAN-Append(cost=0.01.136.35 rows=2268 width=20)(actual time=0.067.0.068 rows=0 loops=1)InitPlan 1(returns$0)->Result(cost=0.00.0.01 rows=1 width=8)(actual time=0.051.0.053 rows=1 loops=1)->Seq Scan on measurement_y...

根据表大小或代价控制是否使用ePQ

QUERY PLAN-Finalize Aggregate(cost=97621.42.97621.43 rows=1 width=8)->Gather(cost=97621.21.97621.42 rows=2 width=8)Workers Planned:2->Partial Aggregate(cost=96621.21.96621.22 rows=1 width=8)->Parallel Seq Scan on test(cost...

查询性能优化指导

segments:3)(cost=0.00.4.00 rows=100 width=8)Rows out:100 rows at destination with 2.728 ms to first row,2.838 ms to end,start offset by 0.418 ms.->Seq Scan on t(cost=0.00.4.00 rows=34 width=8)Rows out:Avg 33.3 rows x 3 ...

GetPartitionsHeatmap-获取分区热度信息

{"boundAxis":[{"bound":"A,B,C,D","labels":["L1","L2","L3","L4"],"rows":3171 },{"bound":"A,B,C,D","labels":["L1","L2","L3","L4"],"rows":277128 }],"dataMap":{"READ_WRITTEN_ROWS":[[0,0,0],[0,0,0]]},"timeAxis":[1671701056070,...

表格

} 插入行 语法 表达式.ActiveDocument.Tables.Item(Index).Rows.Add(BeforeRow)表达式:文档类型应用对象 参数 属性 数据类型 是否必填 描述 BeforeRow String 是 表示将会直接显示在新行右侧的Rows对象。示例 async function example(){ ...

通过Hint干预执行计划

segments:3)(cost=8.25.27.61 rows=11 width=16)->Hash Join(cost=8.25.27.61 rows=4 width=16)Hash Cond:(t2.val=t1.val)->Seq Scan on t2(cost=0.00.13.00 rows=334 width=8)->Hash(cost=8.22.8.22 rows=1 width=8)->Broadcast Motion 1:...

使用EXPLAIN

QUERY PLAN-​-Bitmap Heap Scan on tenk1(cost=25.08.60.21 rows=10 width=244)Recheck Cond:((unique1)AND(unique2>9000))->BitmapAnd(cost=25.08.25.08 rows=10 width=0)->Bitmap Index Scan on tenk1_unique1(cost=0.00.5.04 rows=101 ...

DescribeOasSQLPlans-查询 SQL 执行计划

range_rows:17,logical_range_rows:17,index_back_rows:0,output_rows:17,est_method:default_stat,avaiable_index_name[ALL_VIRTUAL_AGENT]\",\"Rows\":18}],\"Cost\":2013,\"ObjectName\":\"NULL\",\"Operator\":\"PHY_SORT\",\"Property...

分区表扫描算子

QUERY PLAN-Append(actual time=8.376.8.751 rows=0 loops=1)->Seq Scan on part_range_p0 part_range_1(actual time=0.035.0.036 rows=0 loops=1)->Seq Scan on part_range_p1 part_range_2(actual time=0.009.0.009 rows=0 loops=1)->Seq...

创建分区

ENGINE[=]engine_name][COMMENT[=]'string'][DATA DIRECTORY[=]'data_dir'][INDEX DIRECTORY[=]'index_dir'][MAX_ROWS[=]max_number_of_rows][MIN_ROWS[=]min_number_of_rows][TABLESPACE[=]tablespace_name][(subpartition_definition[,...

dbms_sql.reload_trace

0 MAX_EXEC_TIME:0 SUM_ROWS_SENT:0 MIN_ROWS_SENT:0 MAX_ROWS_SENT:0 SUM_ROWS_EXAMINED:0 MIN_ROWS_EXAMINED:0 MAX_ROWS_EXAMINED:0 SUM_ROWS_AFFECTED:0 MIN_ROWS_AFFECTED:0 MAX_ROWS_AFFECTED:0 SUM_LOGICAL_READ:0 MIN_LOGICAL_READ:...

TableInBatchWriteRowResponse

repeated RowInBatchWriteRowResponse put_rows=2;repeated RowInBatchWriteRowResponse update_rows=3;repeated RowInBatchWriteRowResponse delete_rows=4;} table_name:类型:string 描述:该表的表名。put_rows:类型:...

表结构说明

`MAX_ROWS_SENT` bigint(21)unsigned NOT NULL DEFAULT '0',`SUM_ROWS_EXAMINED` bigint(21)unsigned NOT NULL DEFAULT '0',`MIN_ROWS_EXAMINED` bigint(21)unsigned NOT NULL DEFAULT '0',`MAX_ROWS_EXAMINED` bigint(21)unsigned NOT ...

执行计划

segments:2)(cost=0.00.20.88 rows=1 width=13)Rows out:1 rows at destination with 0.305 ms to first row,0.537 ms to end,start offset by 0.289 ms.->Seq Scan on names(cost=0.00.20.88 rows=1 width=13)Rows out:Avg 1 rows x 2 ...
共有33条 < 1 2 3 4 ... 33 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 物联网平台 对象存储
新人特惠 爆款特惠 最新活动 免费试用