leverage the cached pdbwriters
this increased performance from 500 entries per second to 4000.
This commit is contained in:
@@ -83,7 +83,8 @@ public class TcpIngestor implements AutoCloseable {
|
||||
|
||||
count++;
|
||||
if (count == 100000) {
|
||||
System.out.println("reading " + count + " took " + duration + "ms");
|
||||
// System.out.println("reading " + count + " took " +
|
||||
// duration + "ms");
|
||||
duration = 0.0;
|
||||
count = 0;
|
||||
}
|
||||
@@ -154,7 +155,7 @@ public class TcpIngestor implements AutoCloseable {
|
||||
|
||||
public void start() throws Exception {
|
||||
|
||||
final ArrayBlockingQueue<Entry> queue = new ArrayBlockingQueue<>(100000);
|
||||
final ArrayBlockingQueue<Entry> queue = new ArrayBlockingQueue<>(100);
|
||||
|
||||
serverThreadPool.submit(() -> {
|
||||
Thread.currentThread().setName("db-ingestion");
|
||||
|
||||
Reference in New Issue
Block a user