General perf tips

Optimizer

Performing Indexes

Index on foreign keys speed up the update in parent tables ?? Updating indexed columns can side effect and lock other unrelated rows in table ?

Low level client driver performance features

Feature Effect
Connection pooling Avoids to establish a new connection for each statement
Cursors Lazy retrieval, DB server may not have to calculate all results
Prepared statements SQL statements can be compiled and cached on server side, execution plan already determined
Batch statements Avoids useless round trips by packing statements into groups

DB_Index_Vs_FullScan.svg