⚡️ v2.7.7 Index performance improvements, add drop indices and index pipes, and more.
v2.7.7
-
Add actions
drop indices
andindex pipes
.
You may now drop and create indices on pipes with the actionsdrop indices
andindex pipes
or the pipe methodsdrop_indices()
andcreate_indices()
:import meerschaum as mrsm pipe = mrsm.Pipe('demo', 'drop_indices', columns=['id'], instance='sql:local') pipe.sync([{'id': 1}]) print(pipe.get_columns_indices()) # {'id': [{'name': 'IX_demo_drop_indices_id', 'type': 'INDEX'}]} pipe.drop_indices() print(pipe.get_columns_indices()) # {} pipe.create_indices() print(pipe.get_columns_indices()) # {'id': [{'name': 'IX_demo_drop_indices_id', 'type': 'INDEX'}]}
-
Remove
CAST()
to datetime with selecting from a pipe's definition.
For some databases, casting to the same dtype causes the query optimizer to ignore the datetime index. -
Add
INCLUDE
clause to datetime index for MSSQL.
This is to coax the query optimizer into using the datetime axis. -
Remove redundant unique index.
The two competing unique indices have been combined into a single index (for the keyunique
). The unique constraint (whenupsert
is true) shares the name but has the prefixUQ_
in place ofIX_
. -
Add pipe parameter
null_indices
.
Set the pipe parameternull_indices
toFalse
for a performance improvement in situations where null index values are not expected. -
Apply backtrack minutes when fetching integer datetimes.
Backtrack minutes are now applied to pipes with integer datetimes axes.