2 Replies Latest reply: Jan 30, 2017 6:13 AM by surendra j RSS

    preciding load vs resident load

    Srinivas Sukala

      Difference between Preceding load and Resident load

        • Re: preciding load vs resident load
          Vineeth Pujari

          there is ample of content available on the related topics, you can search them on the forum

           

          Have a good read

          https://community.qlik.com/search.jspa?q=preceding+load+resident+load

          • Re: preciding load vs resident load
            surendra j

            Preceding Load

            Resident load and precedding load

            Precedding load creates only one table.because we can do the manipulations/aggregations/aliases with in the same load statement with another load statement.Preload is used to add dimensions and facts to the current table.

            Resident load is also used to reuse already in-memory loaded tables. so here physically two table are created.

            So preceding load is best practice in qlikview when comared to resident load.

            Example:

            Resident load:

            Tab1:

            load empname,

                    salary,

                    emp id

            from----------(.txt)

            tab2:

            load max(salary) as maxsal,

                    count(emp id) as count

            resident tab1; //Here we used the salary and empid fields from tab1.so we need to use keyword resident.

            here in data model physically both tab1 and tab2 are presented.

            Precedding load:

            tab1:

            load  *,max(salary) as maxsal,

                    count(emp id) as count group by empname;

            load empname,

                    salary,

                    emp id

            from----------(.txt)


            If you want all the fields,you can put * .here automatically tab2 is droped itself.(without exicuting the drop command even).so here only 1 table is presented in data model.

             

            Hope it helps!!