Tag: Query Optimization

Pseudo Code for batch processing using WHILE LOOP

[code language="sql"] /* Note : Make sure your table/dataset which you wish to process in batches has the column with running number such as an identity column or if not then dump the data in some local scoped temporary/hash table with column as RowID which can be generated using the ROW_NUMBER() function if you are … Continue reading Pseudo Code for batch processing using WHILE LOOP

Leveraging WHILE LOOP

WHILE LOOP can be used for batch processing and can be helpful if you are dealing with huge data processing. Recently I did an analytics project where I had to iterate through 70K customers and generate the Monthly, Last One Year and Since Inception returns of all the customers and their respective benchmark index since … Continue reading Leveraging WHILE LOOP