https://kotlinlang.org logo
#codereview
Title
# codereview
o

oday

05/08/2018, 11:12 AM
why does line 6 get called multiple times? https://pastebin.com/tz0gkZrg many many times first when I insert 1 row and the count is 1, it gets called twice, and then after that the calls just keep increasing pastes the count 6 or 10 times
a

Andreas Sinz

05/08/2018, 11:19 AM
in order to use
COUNT()
, you need
GROUP BY
(seems like mysql allows it without grouping?), not sure if this solves your problem
o

oday

05/08/2018, 11:21 AM
but regardless of the query
why is the subscribe() being called multiple times?
why is the query sort of like pushing out results constantly
and of the same value the results are being pushed out
10 times of
4
count
a

Andreas Sinz

05/08/2018, 11:22 AM
i don't know, I haven't used Rx/that ORM yet
5 Views