Why does DevCenter of Datastax has row restrictions to 1000?

房东的猫 提交于 2019-12-11 23:36:13

问题


There is a limit of displaying 1000 rows for the tables in Datastax Devcenter. Any reason for having this option?

Because when queried as SELECT count(*) FROM tablename; the performance from Cassandra is going to be same whether displaying 1000 records or complete records set.


回答1:


DevCenter version 1.6.0 introduces result set paging which allows you to browse all the rows in your result set.

In DevCenter 1.6.0 the "with limit" value sets the paging size, e.g. the number of records to view per page and is still limited to 1000 maximum. However, now you can page forward (and back) through all of the query results.

A related new feature allows you to export all results to a file, either as CSV or INSERT statements. Right-click in the results view area and select "Export all results to File as [CSV|Insert]".




回答2:


This is by design; consider it as a safeguard that prevents you from potentially fetching thousands or millions of rows by accident, which, among other problems, could have a serious impact on your network's bandwidth usage.




回答3:


I run Datastax Devcenter 1.4.

I run the query with a limit and it provides me the actual count. But LIMIT is limited to maximum value of signed integer (2147483647)

select count(*) from users LIMIT 2147483647;-- ALLOW FILTERING;



来源:https://stackoverflow.com/questions/37862375/why-does-devcenter-of-datastax-has-row-restrictions-to-1000

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!