Aditya Verma
01/03/2025, 5:04 AM"segmentPartitionConfig": {
"columnPartitionMap": {
"userId": {
"functionName": "Murmur",
"numPartitions": 5
}
}
}
"routing": {
"segmentPrunerTypes": [
"partition"
],
"instanceSelectorType": "strictReplicaGroup"
},
but I dont see multiple partitions here I only see
{\"numPartitions\":1,\"functionConfig\":null,\"functionName\":\"Murmur\",\"partitions\":[0]}}}",
but I am not seeing more partitions , I keep seeing this.
@Yarden Rokach. @Rajat VenkateshGonzalo Ortiz
01/03/2025, 9:51 AMAditya Verma
01/03/2025, 9:56 AMAditya Verma
01/03/2025, 10:08 AMGonzalo Ortiz
01/03/2025, 11:17 AM{\"numPartitions\":1,\"functionConfig\":null,\"functionName\":\"Murmur\",\"partitions\":[0]}}}",
Xiang Fu
Xiang Fu
{\"numPartitions\":1,\"functionConfig\":null,\"functionName\":\"Murmur\",\"partitions\":[0]}}}",Aditya Verma
01/03/2025, 1:59 PMXiang Fu
Xiang Fu
Xiang Fu
Aditya Verma
01/03/2025, 2:12 PMAditya Verma
01/03/2025, 2:12 PMXiang Fu
Aditya Verma
01/03/2025, 2:13 PMXiang Fu
Aditya Verma
01/03/2025, 2:14 PMXiang Fu
Xiang Fu
Aditya Verma
01/03/2025, 2:15 PMAditya Verma
01/03/2025, 2:15 PMXiang Fu
Xiang Fu
Xiang Fu
Aditya Verma
01/03/2025, 2:21 PMAditya Verma
01/03/2025, 2:22 PMsegmentPartitionConfig": {
"columnPartitionMap": {
"userId": {
"functionName": "Murmur3",
"numPartitions": 10
}
}
}Xiang Fu
Xiang Fu
Xiang Fu
Aditya Verma
01/03/2025, 2:35 PMAditya Verma
01/03/2025, 2:35 PMGonzalo Ortiz
01/03/2025, 2:36 PMGonzalo Ortiz
01/03/2025, 2:37 PMAditya Verma
01/03/2025, 2:37 PMGonzalo Ortiz
01/03/2025, 2:38 PMAditya Verma
01/03/2025, 2:39 PMGonzalo Ortiz
01/03/2025, 2:39 PMAditya Verma
01/03/2025, 2:42 PMsegmentPartitionConfig": {
"columnPartitionMap": {
"userId": {
"functionName": "Murmur",
"numPartitions": 5
}
}
}Aditya Verma
01/03/2025, 2:42 PMGonzalo Ortiz
01/03/2025, 2:47 PMselect whatever from table where userId = 'a' Pinot will transform that into something like select whatever from table where userId = 'a' and murmur(userId) % 5 = murmur('a') % 5 (I mean, not exactly that, but it will prune segments by only reading the ones that contain at least one row such as murmur(userId) % 5 = murmur('a') % 5 .
Ideally you would partition your data in the same way at ingestion (ie, configuring kafka to partition by userId and have partitions for any k). If you do so, it is going to be guaranteed that each segment will contain data for exactly one partition, which means that the query above will only read 1/5 of your dataGonzalo Ortiz
01/03/2025, 2:48 PMConfig is just for faster query reads but I thought that’s where the indexing comes into pictureIndexes are another layer of improvement in queries. Pinot first prunes segments and then apply indexes. Using indexes is faster than full scans, but pruning segments is even faster than using indexes
Aditya Verma
01/03/2025, 2:51 PMAditya Verma
01/03/2025, 2:51 PMGonzalo Ortiz
01/03/2025, 2:52 PMAditya Verma
01/03/2025, 2:52 PMGonzalo Ortiz
01/03/2025, 2:52 PMAditya Verma
01/03/2025, 2:53 PMGonzalo Ortiz
01/03/2025, 2:54 PMXiang Fu
Xiang Fu
Aditya Verma
01/04/2025, 6:22 PM