tdb_expand: limit the expansion with huge records