-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Is your feature request related to a problem? Please describe.
Communities such as BlackskyTravel or the Haiti feed would like to be hosted by Blacksky and leverage the features of rsky-feedgen but at the moment are quite slow to load and create a poor experience in-app. Doing something select * from post where post."text" like '%{keyword}%'
takes a long time.
Describe the solution you'd like
Some improvement or optimization that makes it easy to query and return posts for a bsky feedgen based on a provided set of keywords (could be regex, etc.)
Describe alternatives you've considered
The following is how it's implemented today trying to use hashtags:
// Adjust the filtering logic
if hashtags.is_empty() {
// No hashtags provided, include only posts where author is in the list
query = query.filter(MembershipSchema::did.is_not_null());
} else {
let hashtag_patterns: Vec<String> = hashtags
.iter()
.map(|hashtag| format!("%#{}%", hashtag))
.collect();
query = query.filter(
MembershipSchema::did
.is_not_null()
.or(PostSchema::text.ilike(any(hashtag_patterns))),
);
}
Additional context
Having this would allow us to bring on board more community based feeds.
afbase and d3ol-dev
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed