Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vtkstef on github.
  • I am vtkstef (https://keybase.io/vtkstef) on keybase.
  • I have a public key ASAlkUC85j32Cb13TDyjvccdTqJxySYPFIr1ekWkXg9ZFAo

To claim this, I am signing this object:

@vtkstef
vtkstef / gist:666f9fd6f4f0ae8fd653
Created June 12, 2015 14:38
separate fragment batches
public long run(int orderid, int count, double billing_amount, String message) throws VoltAbortException {
VoltTable[] queryresults;
for (int i=0; i < count; i++)
{
voltQueueSQL(InsertOrderItemExport, orderid * 100 + i, orderid, "ProductID", message, billing_amount, billing_amount);
}
voltQueueSQL(InsertOrderExport, orderid, "SALES_CHANNEL", "STATUS123456", "Rs", billing_amount, 1, message);
@vtkstef
vtkstef / gist:c469be1b368820ee3733
Last active August 29, 2015 14:22
Sample custom export configuration
<export>
<configuration stream="kafkastream" enabled="true" type="custom" exportconnectorclass="org.voltdb.exportclient.kafka.KafkaExportClient">
<property name="bootstrap.servers">broker1:9092,broker2:9092,broker2:9092</property>
</configuration>
</export>
@vtkstef
vtkstef / gist:5737523
Last active December 18, 2015 06:09
brew cleanup command failure
$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: f65ae1fdf64c7dbd81258fa731f29416ebbb4078
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1365549073
@vtkstef
vtkstef / todos
Created February 3, 2012 23:53
Add comments
add comments