Skip to content

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Mar 31, 2025

Why are these changes needed?

Querying blob feed posted by a given account

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix jianoaix changed the title feat: support per-account blob feed at metadata store feat: support range query over timestamp for per-account blobs at metadata store Mar 31, 2025
@jianoaix jianoaix changed the title feat: support range query over timestamp for per-account blobs at metadata store feat: support range query for per-account blobs at metadata store Mar 31, 2025
@jianoaix jianoaix requested review from dmanc, ian-shim and pschork and removed request for dmanc March 31, 2025 23:24
},
},
Projection: &types.Projection{
ProjectionType: types.ProjectionTypeAll,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the secondary indexes here are projecting all (hence duplicating data multiple times in aggregate), I wonder if any of these will be better to just projecting just the essential/minimum fields.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on the costs of projecting all. I don't think it's an issue as of right now.

@jianoaix
Copy link
Contributor Author

jianoaix commented Apr 3, 2025

ping

@@ -32,6 +33,7 @@ const (
OperatorResponseIndexName = "OperatorResponseIndex"
RequestedAtIndexName = "RequestedAtIndex"
AttestedAtIndexName = "AttestedAtAIndex"
AccountBlobIndexName = "AccountBlobIndex"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an infrastructure change to add this index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, having a local change which will be sent out later

//
// If limit > 0, returns at most that many blobs. If limit <= 0, returns all results
// in the time range.
func (s *BlobMetadataStore) GetBlobMetadataByAccountID(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetBlobMetadataByAccountID looks similar to GetDispersalRequestByDispersedAt, could we have some helper or better to keep the logic separate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be nice to have a template or something, but just helping two functions seems not that high gain to take the complexity of template yet

@jianoaix jianoaix merged commit 1fd8fde into Layr-Labs:master Apr 3, 2025
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants