Skip to content
Discussion options

You must be logged in to vote

Will this query get at most 20 matches from listing2f and at most 20 matches from listing2?

Yes:

mysql> drop table if exists t; create table t; drop table if exists t2; create table t2; drop table if exists dist; create table dist type='distributed' local='t' local='t2'; insert into t values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20),(21),(22),(23),(24),(25); insert into t2 values(111),(112),(113),(114),(115),(116),(117),(118),(119),(1110),(1111),(1112),(1113),(1114),(1115),(1116),(1117),(1118),(1119),(1120),(1121),(1122),(1123),(1124),(1125); select * from dist limit 100 option cutoff=20;
--------------
drop table if exists t
--------------

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by starinacool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants