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

Add indexes to certain persisted entities #247

Closed
MrCsabaToth opened this issue Jan 25, 2022 · 1 comment
Closed

Add indexes to certain persisted entities #247

MrCsabaToth opened this issue Jan 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@MrCsabaToth
Copy link
Member

Inspired by Jan 25th Android Worldwide talk "Maxing out SQLite performance by Rashanjyot Arora". We use Floor now (the other popular plugin is Moor), and it has index related features in the Entity annotations: https://floor.codes/entities/
@Entity(tableName: 'person', indices: [Index(value: ['custom_name'])])

@MrCsabaToth MrCsabaToth added the enhancement New feature or request label Jan 25, 2022
@MrCsabaToth
Copy link
Member Author

Might not be needed at all with Isar. Most of the sorts I do is time descending. Isar does implicit sorting by Id, which is inherently time ascending, and it can be reversed by .where(sort: Sort.desc)

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

No branches or pull requests

1 participant