Akash Yadav
06/14/2022, 12:31 PMmy event payoad would be something like this
{
"eventid": "xyz",
"userId" : "abc",
"amount" : "100",
"paymode" : "CC"
}
table -
CREATE TABLE pay_events (
event_id serial PRIMARY KEY,
user_id VARCHAR (50) NOT NULL,
amount int not null,
paymode varchar(4) not null
);
The query for getting the data from pino would be something like this
select pe.user_id from pay_events as pe where pe.paymode = 'CC' and pe.amount > 100 group by pe.user_id having count(pe.event_id) > 1;
A segment can have a million users
we need to extract all the users somehow and that is going to be used by downstream services for sending bulk campaigns and notifications
My questions are-
1.is pinot the right choice for this use case?
2.is there any scalable way of fetching all the users other than pagination through limit and offset?
Do let me know if you guys need any clarification
ThanksšAkash Yadav
06/15/2022, 3:56 AMMayank
Mayank
Akash Yadav
06/15/2022, 4:38 AMMayank
Akash Yadav
06/15/2022, 4:53 AMMayank
Xiang Fu
Akash Yadav
06/15/2022, 7:24 AMXiang Fu
Akash Yadav
06/15/2022, 9:43 AMMayank
Rong R
06/15/2022, 2:20 PMpinot.broker.request.handler.type=grpc
in order to enable grpc broker portMayank
Rong R
06/15/2022, 3:06 PMMayank
Satyam Raj
06/21/2022, 5:30 AM