Friday, October 4, 2019

  • Redis can read a json 16x faster than postgres.
  • "Vice signaling" (as opposed to virtue signaling) is a cool trait. Admitting one's faults, weaknesses, etc. I like that in people.
  • Petty finally sent me the list of people who had paid so far. Added them to the prod table, lb looks much better now.
    1. enter-python-prod
    2. paid_league_2019 = db.session.query(League).filter(League.season_id == Season.id, Season.season == 2019, League.name == 'Paid').one()
    3. user = db.session.query(User).filter(User.email.like('%petty%')).one()
    4. paid_league_2019.users.append(user)
    5. Repeat 3-4 for any other users
    6. db.session.commit()
  • 33 so far. More are planning to pay (Art, Wes, Harner, ...).