How sub-library sub-table after the database query statistics?

One way sub-library sub-table database is a database server relieve stress and increase concurrency, but with the following sub-library sub-table, but also inevitably bring about many issues, very obvious question is how to solve the query after the sub-libraries statistics. After the sub-library can not use SQL, simple filtration and then merge can do, but the group will be very troublesome, it is necessary to divide the library group summary compiled and re-group summary. This is a challenge for many java application programmer is concerned. However, the amount of data is too large, regardless of the library does not work, a dilemma.

At this time, it is easy to step summary calculations set after using the calculator to do, such as just said group summary question, just write a few lines:


A B C
1 =[connect("orclA"),connect("orclB")]
/ Connecting a plurality of data sources
2 select   sales.dept,sum(orders.amount)amount   from orders,sales where   orders.salesID=sales.salesID group by sales.dept / Group summary SQL
3 fork A1 =A3.query@x(A2) /Parallel Computing
4 =A3.conj()
/ Merge result
5 =A4.groups(DEPT;sum(AMOUNT):AMOUNT)
/ Secondary group summary




Here code that implements packet also considered Handicap library parallel execution SQL.

Use the calculator set to achieve sub-library usage summary contains several examples are given to illustrate the summary of the sub-library, library operations across the data table is a more detailed explanation of the relevant sub-query library statistics, as well as the statistical inquiry to explain the Video Library carding and difficulties. Set solver very easily embedded into Java applications, Java script how to call SPL use and access to its methods. On Set solver installation, get free licenses and related technical information, you can see how to use the calculator set.


Guess you like

Origin blog.51cto.com/12749034/2465404