Content
@
0 reply
0 recast
0 reaction
Joe Petrich 🟪
@jpetrich
An engineer on my team has been working on a migration of some indexed blockchain data to postgres and took our queries from an initial average latency of almost 2 seconds to under 100ms. The process to get there was fascinating, imo. Would anyone else be interested in a writeup of the optimization techniques he used?
11 replies
2 recasts
28 reactions
welp 🎩🌸
@we
Yeah, of course. What was this migrated from?
1 reply
0 recast
0 reaction
Joe Petrich 🟪
@jpetrich
Redis. Used to manually index what we needed there, and wanted to move to having more flexibility in our queries
1 reply
0 recast
1 reaction
welp 🎩🌸
@we
ah, I think this is my general approach as well? Try to jam things into memory first -> start using redis when we need consistency across app instances -> start using db when we need more flexibility and permanence
1 reply
0 recast
0 reaction