gabordemooij/redbean — pull request #165 by kadishmal (2012-06-18 02:43:31+00:00)
Title: Code refactoring. Replaced N loop with native CUBRID SQL.

As discussed with @gabordemooij at [Added index-check to prevent redundant logs](https://github.com/gabordemooij/redbean/commit/329e96742647f6b300bc7e9d3130131386aaf063#commitcomment-1460555), replaced N loop with a native CUBRID SQL statement.