Skip to content
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

[Storage] List and search files efficiently #8

Open
fboucquez opened this issue Oct 25, 2021 · 0 comments
Open

[Storage] List and search files efficiently #8

fboucquez opened this issue Oct 25, 2021 · 0 comments

Comments

@fboucquez
Copy link
Contributor

fboucquez commented Oct 25, 2021

How to search/list the transactions/files efficiently? When listing files we only care for the top-level root aggregate transaction (especially the inner transfers with the meta), individual data aggregate transactions are not useful. The current solution is to have 2 recipients, the root transaction transfer uses the “owner” as the recipient, the data transfers use “sink/burn/garush” address as the recipient. Then we can search by “recipient=owner” and just get the root transaction. From there, the Storage Service picks the files.

Atm the 2 recipients work ok but we may need to add more fields to further trim down the search, especially when they are regular user transfer in the mix.

One option is adding transaction searches by "message" (=, or maybe like) to Rest. We could search for transfer where the message includes "ype: garush or type: garush and"parser: png. Note the type: garush is required to filter out other transfers that aren't root transfers (like data transfers or unrelated transfers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant