Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Performance optimization tips-cluster dimension table

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

When fact table and dimension table are associated, dimension table needs frequent random access, so dimension table should be stored in memory as much as possible to improve the performance of association calculation. If the dimension table is too large to fit in the memory of a single machine, it should be considered to read the dimension table into the memory of multiple machines in a cluster manner. The following example illustrates the use of cluster dimension tables.

Suppose there are two compute nodes, 127.0.0.1: 8281 and 127.0.0.1: 8282. Execute the following script to load the product table into node machine memory:

AB1=["127.0.0.1:8281","127.0.0.1:8282"]

2fork [[1,20000000],[20000000,40000000]];A1=connect("demo1").query@x("select productID,name,price from product where productID>? and productID

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report