Skip to content

Commit

Permalink
add index on feeds(title) #57
Browse files Browse the repository at this point in the history
the idea is that this will reduce the number of requests
being sent, due not sending the whole feeds table
  • Loading branch information
azimut committed Sep 26, 2024
1 parent 4728e12 commit ac48047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jobs/go/src/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func initTables(db *sql.DB) error {
title text,
url text not null unique
) strict;
create index feedstitle on feeds(title);
create table feeds_details (
feedid integer not null,
Expand Down

0 comments on commit ac48047

Please sign in to comment.