docs icon indicating copy to clipboard operation
docs copied to clipboard

[Feedback] Unclear compression practice from the Cryptocurrency - part 1 tutorial

Open shawnkoh opened this issue 1 year ago • 1 comments

Is it easy to find the information you need?

Yes

Are the instructions clear?

No

How could we improve the Timescale documentation site?

In Cryptocurrency - part 1 tutorial , readers were tasked to compress the transactions table.

ALTER TABLE transactions 
SET (
    timescaledb.compress, 
    timescaledb.compress_segmentby='block_id', 
    timescaledb.compress_orderby='time DESC'
);

The following warning appears.

WARNING:  column "hash" should be used for segmenting or ordering

From what I understand, the warning arises because the compression process ignores the unique index.

Is there a "best practice" for handling situations like this where uncompressed data should enforce uniqueness?

shawnkoh avatar Jan 19 '24 09:01 shawnkoh

Thank you for the report. We welcome documentation contributions!

  • For information about how to propose a change, see the contributing guide in our GitHub repository.
  • For information on style and word usage, see the style guide

github-actions[bot] avatar Jan 19 '24 09:01 github-actions[bot]