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

[How to use] How to efficiently find a specific AssetEntity within AssetPathEntity #1220

Open
hoyahozz opened this issue Nov 7, 2024 · 1 comment

Comments

@hoyahozz
Copy link

hoyahozz commented Nov 7, 2024

Platforms

dart

Description

Hello photo_manager team,

I am looking for guidance on how to efficiently find a specific AssetEntity within an AssetPathEntity, especially when dealing with large albums.

Currently, I am using the getAssetListRange method to retrieve all assets in the album and then checking if the specific AssetEntity exists. However, this approach can be inefficient for large albums.

  1. Is there a more efficient way to check if a specific AssetEntity is present in an AssetPathEntity without loading all assets?
  2. Does the library provide any built-in methods for this purpose?
  3. Are there recommended practices or examples for optimizing searches within AssetPathEntity?

Thank you for your assistance!

My code

No response

Try do it

No response

@fluttercandies-dev
Copy link

AI Summary: The user is seeking an efficient way to determine if a specific AssetEntity exists within an AssetPathEntity without loading all assets, particularly for large albums. They are looking for optimized search methods or best practices within the photo_manager library.

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

No branches or pull requests

2 participants