support for the TRUNCATE statement

Issue #1474 resolved
Former user created an issue

it'd be nice to support TRUNCATE on those dbms that support it, for example when table.delete() is called without any filters. it's standard sql, and more efficient than a normal .delete(), so why not? :)

Comments (4)

  1. Mike Bayer repo owner

    usually because its easy enough to just say execute("truncate table"). its more "efficient" because it bypasses all integrity checks and triggers so its not a lever you should be pulling often - its more of an administration command.

  2. Mike Bayer repo owner

    oh if you mean, issue TRUNCATE when one says delete(), definitely never. wow talk about surprise behavior.

  3. Log in to comment