Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lento

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lento - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

6

package.json
{
"name": "lento",
"version": "0.3.1",
"version": "0.3.2",
"description": "Streaming client for Presto HTTP protocol v1",

@@ -17,3 +17,3 @@ "license": "MIT",

"dependencies": {
"aggregate-error": "~2.0.0",
"aggregate-error": "~2.2.0",
"backo": "~1.1.0",

@@ -24,3 +24,3 @@ "debug": "~4.1.0",

"once": "~1.4.0",
"readable-stream": "~3.1.1",
"readable-stream": "~3.3.0",
"simple-concat": "~1.0.0",

@@ -27,0 +27,0 @@ "sql-escape-string": "~1.1.0"

@@ -126,7 +126,7 @@ # lento <sup id="a1">[1](#f1)</sup>

The `pageSize` specifies the maximum number of rows per page. Presto may return less per page. If Presto returns more rows than `pageSize`, the surplus is buffered and the stream will not make another HTTP request to Presto until fully drained. Note that Presto retains finished queries for 15 minutes. If `pageSize` is <= 0 the stream emits pages as returned by Presto, without slicing them up.
The `pageSize` specifies the maximum number of rows per page. Presto may return less per page. If Presto returns more rows than `pageSize`, the surplus is buffered and the stream will not make another HTTP request to Presto until fully drained. Note that if the (remainder of) rows fit in Presto's buffers, Presto will not block (until another HTTP request is made) but instead go into the `FINISHED` state after which you have 15 minutes (by default) to fetch the remaining results. If `pageSize` is <= 0 the stream emits pages as returned by Presto, without slicing them up.
The `highWaterMark` specifies how many pages to fetch preemptively. The maximum numbers of rows held in memory is approximately `(highWaterMark || 1) * pageSize`, plus any surplus from the last HTTP request. Because Presto can return thousands of rows per request, the default `highWaterMark` is 0 so that we *don't* preemptively fetch and only hold the number of rows contained in the last HTTP request.
If you care more about throughput, you can opt to increase `highWaterMark`. This can also help if you notice Presto going into `BLOCKING` state because you're not reading fast enough. Additionally you can increase `pageSize` if processing time is minimal or if you don't mind blocking the rest of your app while processing a page.
If you care more about throughput, you can opt to increase `highWaterMark`. Additionally you can increase `pageSize` if processing time is minimal or if you don't mind blocking the rest of your app while processing a page.

@@ -133,0 +133,0 @@ For tuning the Presto side of things, use [`set()`](#set).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc