Abdullah Ömer Yamaç
04/02/2025, 7:13 PM{
"queryType": "scan",
"dataSource": "mobility",
"intervals": [
"2024-01-01T00:00:00.000Z/2025-01-01T00:00:00.000Z"
],
"columns": [
"advertiserid"
],
"filter": {
"type": "selector",
"dimension": "advertiserid",
"value": "0104c0fe-b9b0-6e03-1b7f-f186d7f16b3e"
}
}
Is it normal to take this much time?Gian Merlino
04/02/2025, 8:55 PMSELECT advertiserid
FROM mobility
WHERE
advertiserid = '0104c0fe-b9b0-6e03-1b7f-f186d7f16b3e'
AND __time >= TIMESTAMP '2024-01-01 00:00:00'
AND __time < TIMESTAMP '2025-01-01 00:00:00'
it would return every row containing that advertiseridGian Merlino
04/02/2025, 8:56 PMGian Merlino
04/02/2025, 8:57 PMAbdullah Ömer Yamaç
04/03/2025, 4:52 AMSELECT "__time", "advertiserid", "coordinates", name
FROM mobility
WHERE
"advertiserid" IN ('0104c0fe-b9b0-6e03-1b7f-f186d7f16b3e','02a2dc7e-62db-480b-9387-61ba28988007','04b027f3-3e66-6d40-ae0c-c0f0f69903f2')
AND "__time" >= TIMESTAMP '2024-01-01 00:00:00'
AND "__time" < TIMESTAMP '2025-01-01 00:00:00'
We have some list of ids and need to retrieve geolocation and name based on advertiserid.Gian Merlino
04/03/2025, 4:13 PMadvertiserid (which would be there by default unless you switched them off).
perhaps it's returning a very large amount of data?Abdullah Ömer Yamaç
04/03/2025, 4:52 PMGian Merlino
04/03/2025, 5:52 PMGian Merlino
04/03/2025, 5:53 PMAbdullah Ömer Yamaç
04/03/2025, 6:32 PMTerminating due to java.lang.OutOfMemoryError: Java heap space . I couldn't fix this issue, although I modified the middle manager's jvm config such that -Xmx32g , -Xms8g . However, this issue is another subject. Firstly, I need to check whether the druid performance is enough or not for me.Gian Merlino
04/03/2025, 10:12 PMbin/start-druid to start Druid rather than the micro quickstart. that start script sizes memory pools automatically based on the amount of memory available on your machineAbdullah Ömer Yamaç
04/04/2025, 7:00 AMAbdullah Ömer Yamaç
04/05/2025, 11:51 AMAbdullah Ömer Yamaç
04/08/2025, 6:53 PM2025-04-08T14:37:17,933 INFO [[coordinator-issued_compact_mobility_pfenclia_2025-04-08T14:32:17.445Z]-batch-appenderator-push] org.apache.druid.segment.realtime.appenderator.BatchAppenderator - Push started, processsing[1] sinks
Terminating due to java.lang.OutOfMemoryError: Java heap spaceAbdullah Ömer Yamaç
04/08/2025, 6:54 PMbin/start-druidAbdullah Ömer Yamaç
04/09/2025, 7:34 PMGian Merlino
04/09/2025, 8:27 PMhour, cluster by advertiserid. this will limit the number of segments that need to be checked for each query that uses advertiserid IN (...) and will speed things up as wellGian Merlino
04/09/2025, 8:30 PMOutOfMemoryError make it tough to try that. i am not sure why that's happening. if you could capture a heap dump and see what the largest objects are, we could take a look.
alternatively- you could try SQL REPLACE instead of a compaction. the command would be something like this:
REPLACE INTO table2 OVERWRITE ALL
SELECT * FROM table1
PARTITIONED BY DAY
CLUSTERED BY advertiserId