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

Sorting issues w/ SQLite Database #17

Open
siblount opened this issue Dec 28, 2022 · 1 comment
Open

Sorting issues w/ SQLite Database #17

siblount opened this issue Dec 28, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@siblount
Copy link
Owner

Apparently, sorting in SQLite is tougher than I thought. Not only that, attempting to preview the changes w/ a SQLite DB viewer program, such as, DB Browser for SQLite, yields different results compared to what Daz Product Installer has.

For sorting by "Relevance", DB Browser results are different compared to ours.

Additionally, the results that are received from the SQLite engine are in reverse order and even after ORDER BY DESC/ASC, still returns in the same order.

I'm not sure what the issue is, but sooner or later either I or someone else will fix.

If you are willing to take a look at the queries being made, you can find it here.

@siblount siblount added bug Something isn't working help wanted Extra attention is needed labels Dec 28, 2022
@siblount siblount self-assigned this Jan 1, 2023
@siblount siblount added this to the v1.0.x Beta Release milestone Jan 14, 2024
@siblount
Copy link
Owner Author

I don't know why this is happening. On another note, a better relevance solution was found using virtual tables. Unfortunately, virtual tables has a limitation where you cannot use triggers on them which is critical for us, unless we make our own makeshift trigger.

Alternatively, we could just get all the results from the database and handle our own relevance code versus letting the SQLite engine do it's magic (or something among those lines).

@siblount siblount removed the help wanted Extra attention is needed label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant