What I trying to do is, to make a real column in psql database and let it be updated automatically when every single hand is imported. That means I can query like this. Is this possible?
- Code: Select all
select sum(case when flg_f_donk then 1 else 0 end), sum(case when flg_f_donk_opp then 1 else 0 end) from holdem_hand_player_statistics where id_player=blahblah
For example, Donk Flop Opp
- Code: Select all
holdem_hand_player_statistics.flg_p_face_raise AND holdem_hand_player_detail.flg_f_open_opp AND NOT holdem_hand_player_statistics.flg_f_cbet_opp
AND (holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position AND (holdem_hand_player_detail.val_p_raise_aggressor_pos != (holdem_hand_summary.cnt_players-1)))
I see flg_t_donk_opp and flg_r_donk_opp exist in psql database, but not for flg_f_donk_opp after I inserted hand_flop_donk_opp.pt3stat. U know when I query this custom stat Donk Flop Opp outside PT3 (like outside program written in VC++ using psql driver), it need to be calculated and cause lag.
