Abap Performance Guideline

1. Architecture

传统db的瓶颈在于从磁盘读写数据的性能有限。而Hana则将数据直接放置在内存中,只将logging和backup的数据存放在磁盘中,不受I/O的限制。

Sap Neatwear Abap 通过DBI (database independent layer) 访问database. DBI 中集成了open SQL 和native SQL, 默认会使用open SQL,特殊情况会使用native SQL. 基于这样的架构,在底层使用HANA DB 的时候,经典的abap performance guideline也适用于hana db的情况。

2.classical five rules

make where clause as specific as possible

use select with field list instead of select *

use aggregate functions like (count,min,max,sum,avg)

use join or sub queries instead of nested select loops

use select for all entries

use array variants of insert,update,modify,delete

define and use secondary indexes

avoid reading data redundantly

use table buffering

sort data in abap program

3.more important for sap hana

for modifying operations using array operations should be perferred to single operations

nested select loops should be avoided or replaced if possible eg.

using for all entries

using abap table buffer

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 作者: 惟湛 如何调整ABAP程序的性能(copy) 7、两个内表添加使用批量增加代替逐行不推荐Loop at i...
    SmalltalkVoice阅读 12,259评论 7 18
  • 今天私房菜就教大家做一道 皇后“蒜香烤鱼” 食材: 鲤鱼1千克左右一条,鱼肚两侧横刀偏开! 配料: 大蒜四头,生抽...
    享受幸福1阅读 1,850评论 0 1
  • “大声欢笑 让你我肩并肩,何处不能欢乐无限,抛开烦恼勇敢的大步向前,我就站在舞台中间。”,走在路上突然听到这首歌,...
    风吹草折阅读 1,571评论 0 1
  • 爸爸妈妈在做着一个长长久久的梦……那个梦,她们已经为此,筑了很多年。 他们总是觉得,等有钱了,咱们一家人的生活就...
    白色蔷薇香阅读 2,490评论 0 0
  • 时间:17:30翻译时间:23:50正确率:4/5 原文 http://kaoyan.eol.cn/fu_xi/y...
    御坂御坂正在学英语阅读 1,378评论 0 0

友情链接更多精彩内容