You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is indeed confusing me, and I am wondering what is the correct and best way to do it. I hope the documentation and, if necessary, the underlying API, can be changed to make both cases consistent
The text was updated successfully, but these errors were encountered:
@antekresic I'm curious if it is the same case for materialized_only?
I like when we use the = true or = false as it seems more like a configuration style.
So, it means that:
ALTER MATERIALIZED VIEW contagg_view SET (timescaledb.compress= true);
is the same as:
ALTER MATERIALIZED VIEW contagg_view SET (timescaledb.compress);
As a rubyist my brain recognizes timescaledb.compress as a method call but in sql it looks reading a property of a relation and not configuring it. But ok, let's say the hidden assignment to true is being done, but maybe users will get confused that it's a method, and it will also start thinking it will be compressing immediately. In fact they'll need to setup a compression policy or compress manually.
When we toggle a configuration, my brain thinks something else should be done to apply this configuration, when we call the method, we think it can be doing both things at once. Not sure if I'm contributing or not but just thinking loud.
Hey, I found an inconsistency in the docs, but potentially also in the actual SQL API.
When enabling compression on a hypertable, we are asked to set, among other things, timescaledb.compress without explicitly giving it the value true. See https://docs.timescale.com/api/latest/compression/alter_table_compression/#alter-table-compression
When enabling compression on a continuous aggregate, we are asked to set timescaledb.compress with explicitly giving it the value true. See https://docs.timescale.com/api/latest/continuous-aggregates/alter_materialized_view/#sample-usage
This is indeed confusing me, and I am wondering what is the correct and best way to do it. I hope the documentation and, if necessary, the underlying API, can be changed to make both cases consistent
The text was updated successfully, but these errors were encountered: