0

I am having a single partitioned java stored procedure in Voltdb. I need to get the partition id of the current partition in which the procedure is running. How do I get that within the procedure?

Shamith Kumar
  • 13
  • 1
  • 3

1 Answers1

0

Rather than maintaining your own transaction counts in a table, you could call the @Statistics system procedure:

SQL> exec @Statistics PROCEDUREPROFILE 0;

This provides statistics for each procedure for each partition.

SQL> exec @Statistics TABLE 0;

This provides the count of how many records per table per partition.

BenjaminBallard
  • 1,482
  • 12
  • 11