Using Temp Tables
Posted: Thu Aug 09, 2018 12:20 am
I've an issue where I have to collect a large amount of data from different tables and be able to page and sort through it. Unfortunately joining all the data will not work due to how the data is organized.
The only way I can think of handling this through the use of a temp or secondary table. My thought is to collect the data and pump it into the temp table, then I can deal with the sorting and paging of the data set.
I can't find anything in the docs regarding temp tables, so perhaps LANSA does not support it? I am also thinking to create a physical table to act like a temp table, which means I have to worry about clean it out. My concern here is the performance cost of inserting all that data one record at a time.
That leads me to doing something like a "insert into ... select ..." which is how I would do it in the non-LANSA world.
Curious as to what other folks are doing regarding temp tables.
The only way I can think of handling this through the use of a temp or secondary table. My thought is to collect the data and pump it into the temp table, then I can deal with the sorting and paging of the data set.
I can't find anything in the docs regarding temp tables, so perhaps LANSA does not support it? I am also thinking to create a physical table to act like a temp table, which means I have to worry about clean it out. My concern here is the performance cost of inserting all that data one record at a time.
That leads me to doing something like a "insert into ... select ..." which is how I would do it in the non-LANSA world.
Curious as to what other folks are doing regarding temp tables.