-
Notifications
You must be signed in to change notification settings - Fork 61
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
bug: no messages returned from store node when multiple content topics and start/end time are used #2288
Comments
I'm thinking the problem might be related to how the content topic sequence is joined in here: waku/waku_archive/driver/postgres_driver/postgres_driver.nim
Because the prepared statement says:
and if we have multiple content topics like: "a", "b", and "c",
so maybe the prepared statement is in the end doing something like
instead of
for what is worth, something I have seen done in status-go when we create this kind of IN, we first calculate the number of elements inside the query, i.e. if we have 3 content topics, we'd do something like this:
perhaps something similar must be done? |
I made a quick attempt on fixing this here, but no luck:) #2291 The simplest way to fix this seems to be just drop the predefined query, as the |
Weekly Update
|
If I do the following query (using "/dns4/store-02.gc-us-central1-a.shards.test.statusim.net/tcp/30303/p2p/16Uiu2HAmJnVR7ZzFaYvciPVafUXuYGLHPzSUigqAmeNw9nJUVGeM" because i'm sure that storenode has the messages i need)
I end up with an empty response:
However, if I change the query to only include a single content topic, like this:
I get 3 messages!
The text was updated successfully, but these errors were encountered: