Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternator: missing ItemCount field in return of DescribeTable #7550

Open
nyh opened this issue Nov 4, 2020 · 0 comments
Open

Alternator: missing ItemCount field in return of DescribeTable #7550

nyh opened this issue Nov 4, 2020 · 0 comments
Labels
Milestone

Comments

@nyh
Copy link
Contributor

nyh commented Nov 4, 2020

The return from DescribeTable is missing the ItemCount field. According to DynamoDB documentation, ItemCount should have:

The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

In addition to base tables, indexes should also have this ItemCount estimate.

Unfortunately, there is no obvious way to implement this feature efficiently in Scylla. We have a probabilistic mechanism for estimating the number of partitions in a set of sstables, but ItemCount is about individual rows, not partitions. Moreover, whatever estimate we get includes just the data on one node - we'll probably need to collect estimates from all nodes - and when (periodically? during the request? what happens when one of the nodes is down)?
Moreover it's not clear to me (we'll need to find an answer to this) whether a probabilistic, approximate count, is good enough - or if this must be an accurate count of items (albeit only true to six hours ago).

We have an xfailing tests for this feature: test_describe_table.py::test_describe_table_item_count, test_gsi.py::test_gsi_describe and test_lsi.py::test_lsi_describe_fields.

@nyh nyh added the area/alternator Alternator related Issues label Nov 4, 2020
@slivne slivne added this to the 4.x milestone Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants