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
Similar to the Last values cache, the database can cache in RAM the distinct values fora single columnin a table or a hierarchy of columns. This is useful forfast metadata lookups, which can returnin under 30 milliseconds. Many of the options are similar to the last value cache. See the CLI output for more information:
657
+
Similar to the Last values cache, the database can cache in RAM the distinct values fora single columnin a table or a hierarchy of columns. This is useful forfast metadata lookups, which can returnin under 30 milliseconds. Many of the options are similar to the last value cache.
658
+
659
+
You can use the `influxdb3` CLI to [create a distinct values cache](/influxdb3/version/reference/cli/influxdb3/create/distinct_cache/).
658
660
659
661
```bash
660
-
influxdb3 create distinct_cache -h
662
+
influxdb3 create distinct_cache \
663
+
-d <DATABASE_NAME> \
664
+
-t <TABLE> \
665
+
--columns <COLUMNS> \
666
+
[CACHE_NAME]
667
+
```
668
+
669
+
Consider the following `cpu` sample table:
670
+
671
+
| host | application |time| usage\_percent | status |
Similar to the Last values cache, the database can cache in RAM the distinct values fora single columnin a table or a heirarchy of columns. This is useful forfast metadata lookups, which can returnin under 30 milliseconds. Many of the options are similar to the last value cache. See the CLI output for more information:
650
+
Similar to the Last values cache, the database can cache in RAM the distinct values fora single columnin a table or a hierarchy of columns. This is useful forfast metadata lookups, which can returnin under 30 milliseconds. Many of the options are similar to the last value cache.
651
+
652
+
You can use the `influxdb3` CLI to [create a distinct values cache](/influxdb3/version/reference/cli/influxdb3/create/distinct_cache/).
653
+
654
+
```bash
655
+
influxdb3 create distinct_cache \
656
+
-d <DATABASE_NAME> \
657
+
-t <TABLE> \
658
+
--columns <COLUMNS> \
659
+
[CACHE_NAME]
660
+
```
661
+
662
+
Consider the following `cpu` sample table:
663
+
664
+
| host | application |time| usage\_percent | status |
0 commit comments