andrewdunstan
Re:Keeping Instagram up with over a million new users in twelve hours
on Wednesday April 11, 2012 @01:10PM (#3828480)
PGFouine is nice, but it needs a major do-over. It would be good written with a plpgsql backend running against database loaded csv log files, so that it could handle huge logs, unlike now.
Re:Sharding and IDs at Instagram
on Saturday October 01, 2011 @08:32AM (#3059936)
Neat.
You could avoid having to create a per-schema id function by passing the shard id and the sequence oid as params to the function, so you'd have default public.next_id(5,'insta5.table_id_seq'::regclass)