Bug 481257. Make the insertion triggers not do an O(N) scan of the whole table....