1
kudos
spam Kudos Remove

Bad habits to kick : using loops to populate large tables

published 845 days, 22 hours, 58 minutes ago posted by sasa 850 days, 19 hours, 3 minutes ago
Wednesday, October 14, 2009 3:02:13 PM GMT Friday, October 09, 2009 6:57:04 PM GMT

Okay, I will admit, in most cases you are doing this for a demo or proof of concept, and so speed / performance is not all that important. But using a loop to populate a table with 1 million rows, one row at a time, is not fun at all, no matter how much thumb-twiddling you have to do. I often see people building up test cases like this:

category: News | clicked: 1 | | source: sqlblog.com | show counter code
tags: Best Practices, CTEs, habits, loops, numbers table

No comments yet, be the first one to post comment.

To post your comment please login or signup