Hi,
Thanks for your quick reply. I actually tried the following query first, but killed the session after an hour or so.
SELECT COUNT(*) FROM t1 a JOIN t2 b ON (a.id = b.id) ;
When the above did not work, I checked the documention and I found the following in the user guide.
==================================================================
Creating Pack/Pack Knowledge Nodes
Pack/Pack Knowledge Nodes are automatically created by most of joining queries. However,
if you anticipate that two tables will commonly be used together in queries, you can improve
query performance by manually creating a Pack/Pack Knowledge Node for a pair of
columns from the two tables.
- To create a Pack/Pack Knowledge Node, execute a joining query without any additional constraints.
For example:
Select * from table1 join table2 on a1=a2 limit 1;
Important: Avoid use of “Select count(*) from table1 join table2 on a1=a2” since various
optimizations will bypass Knowledge Node creation.
=================================================================
Based on the above information, I tried the LIMIT1 query.
Please let me know if you need additional info.
-Venks