-
Notifications
You must be signed in to change notification settings - Fork 285
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
Support addresses
filter for transaction search
#3511
Comments
A simple query like the following will suffice to get this working without too much of a performance hit. SELECT id FROM transactions WHERE type = 6 AND asset->>'payments' like '%AJ97QsBNxYr4UAWdoKP2DStDCHAJGirmSM%' LIMIT 1; Using the |
Implemented in 3.0 |
It's implemented not as separate
|
When using the
addresses
filter for the/api/transactions/search
endpoint you would expect that multi payments are also shown based on their recipients. That's not the case because the only searches that are performed are on therecipientId
andsenderPublicKey
columns while the recipients for a multi payment are in theasset
column.The query needs to be extended to also look up recipients through
asset->payments->*->recipient
. These kind of queries are very expensive on large databases and need to be properly benchmarked before being released into production.The text was updated successfully, but these errors were encountered: