You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This snippet states that the query was made for a vastly different docs.rs, one that had 280 crates with docs. We now have over 200k crates, so this should probably get fixed. Additionally, metrics for it would be interesting, because why not?
The text was updated successfully, but these errors were encountered:
That part of the code is only run if the query is empty, i.e. someone hit "I'm feeling lucky" without putting anything in the search box. In that case I think selecting a random crate is fine.
It's definitely far from perfect, as it can panic if the offset is off. For example, my test db only has ~50 crates right now, so since the offset is calculated with FLOOR(RANDOM() * 280) that always panics except when RANDOM() is 0
This snippet states that the query was made for a vastly different docs.rs, one that had
280 crates with docs
. We now have over 200k crates, so this should probably get fixed. Additionally, metrics for it would be interesting, because why not?The text was updated successfully, but these errors were encountered: