具有复杂连接条件的Apache Ignite Affinity配置

时间:2018-05-03 14:00:53

标签: sql apache bigdata ignite

我正在使用Ignite进行近乎实时的应用程序,我希望提高我使用的查询的性能。该查询使用SqlFieldsQuery并暗示复杂的连接。例如:

Select 
  col1 , col2 , col3 , col4 , .....
From 
  table1 A inner join table2 B
on 
  A.col5 = "subscribe" and A.col6="sell" and 
   ( 
     (A.col1 = B.col1 and B.col3="1")
     or (A.col2 = B.col1 and B.col3="2")
     or (A.col1 = B.col1 and B.col3="3")) .... etc.

1-此处的连接不仅使用相同的两列来创建关联键。我该怎么办? 2-除此之外,有哪些不同的建议可以提高点燃查询(特别是查询)的性能?

0 个答案:

没有答案
相关问题