-
Notifications
You must be signed in to change notification settings - Fork 472
update mzcompose to support 2000 object search #32478
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
base: main
Are you sure you want to change the base?
Conversation
", ".join( | ||
", ".join( | ||
[ | ||
f"a{i} STRING", | ||
f"b{i} STRING", | ||
f"c{i} STRING", | ||
f"d{i} STRING[]", | ||
] | ||
) | ||
for i in cls.all() | ||
) | ||
});""" | ||
) | ||
print("> INSERT INTO t DEFAULT VALUES;") | ||
print( | ||
f"""> CREATE MATERIALIZED VIEW v2 AS SELECT { | ||
", ".join( | ||
f"ARRAY_AGG(a{i} ORDER BY b1) FILTER (WHERE 's{i}' = ANY(d{i})) AS r{i}" | ||
for i in cls.all() | ||
) | ||
} FROM t GROUP BY a1;""" | ||
", ".join( | ||
f"ARRAY_AGG(a{i} ORDER BY b1) FILTER (WHERE 's{i}' = ANY(d{i})) AS r{i}" | ||
for i in cls.all() | ||
) | ||
} FROM t GROUP BY a1;""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sorry this is my auto formatter
", ".join( | ||
[ | ||
f"a{i} STRING", | ||
f"b{i} STRING", | ||
f"c{i} STRING", | ||
f"d{i} STRING[]", | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto formatter from my editor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bin/pyfmt
is your friend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is what we want by default. It should use the crdb consensus because that's what's running in production, but the diff might help you (or anyone else who needs to debug things) to quickly reproduce the scalability issues around postgres sources we've been observing.
ah yeah, sorry. I meant to mark this as a draft. just showing the diff that I'm using locally. I don't think it actually works since it exits at 1000 locally. |
Motivation
https://materializeinc.slack.com/archives/C0854GU86HL/p1747081703632959?thread_ts=1746561807.931999&cid=C0854GU86HL
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.