Hải Nguyễn
01/18/2024, 2:56 AMMatan Perelmuter
01/18/2024, 8:18 AMand I know which partition the enriched data is inMaybe try to manually create a view in the database? Also for performance, have you defined the tables with "lookup.cache" option?
Hải Nguyễn
01/19/2024, 3:45 AMHải Nguyễn
01/19/2024, 3:59 AMMatan Perelmuter
01/21/2024, 8:21 AMThe lookup cache is used to improve performance of temporal join the JDBC connector. By default, lookup cache is not enabled, so all the requests are sent to external database. When lookup cache is enabled, each process (i.e. TaskManager) will hold a cache. Flink will lookup the cache first, and only send requests to external database when cache missing, and update cache with the rows returned. The oldest rows in cache will be expired when the cache hit to the max cached rowsor when the row exceeds the max time to live specified bylookup.partial-cache.max-rowsorlookup.partial-cache.expire-after-write. The cached rows might not be the latest, users can tune expiration options to a smaller value to have a better fresh data, but this may increase the number of requests send to database. So this is a balance between throughput and correctness.lookup.partial-cache.expire-after-access
Hải Nguyễn
01/22/2024, 9:08 AMMatan Perelmuter
01/22/2024, 9:32 AM