Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Insert vs any?

0 Kudos

I have a program which is taking lots of time in executing, when i traced the code it seems like the insert statement is the cause for the extra time taken, the insert statement is used to insert a work area into a ddic table, is there any alternative for insert statement which will take less time.

And what is the difference between append and insert and which one is more efficient.

9 REPLIES 9

FredericGirod
Active Contributor

He asks about transpartent table, not internal table, no ?

Sandra_Rossi
Active Contributor
0 Kudos

Are you talking about an internal table or a database table?

Sandra_Rossi
Active Contributor
0 Kudos

Frederic Girod Thanks! I have a doubt now that you ask (I wasn't sure until I saw "append", but maybe the OP thinks "append" can be used with database tables). Let's wait for OP feedback!

0 Kudos

yes i asked for transparent table(ddic table)

Sandra_Rossi
Active Contributor

As your question is about database tables, APPEND is not relevant.

Sandra_Rossi
Active Contributor
0 Kudos

For information, "DDIC table" may refer to both database tables ("DDIC transparent table") and internal tables ("DDIC table type").

Sandra_Rossi
Active Contributor

INSERT is the fastest and only way to insert row(s) in a database table.

0 Kudos

thankyou so much

just to be clear, don't INSERT row by row if several data are to be inserted in DB, but from internal table in a single step...
Not sure in your case...