Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Conversation

@jexp
Copy link
Member

@jexp jexp commented Jan 27, 2018

  • both table mode and plain mode will now NOT materialize all results anymore
    but stream to output
  • table mode samples the first 100 rows for total width
  • fields that are longer are wrapped, disable with --wrap false
  • added --width to specify table width
  • tested with PanamaPapers dataset, that caused an OOM before, now finishes quickly
  • improved table format implementation for performance

* both table mode and plain mode will now NOT materialize all results anymore
but stream to output
* table mode samples the first 100 rows for total width
* fields that are longer are wrapped, disable with --wrap false
* added --width to specify table width
* tested with PanamaPapers dataset, that caused an OOM before, now finishes quickly
* improved table format implementation for performance
.dest("force-non-interactive")
.action(new StoreTrueArgumentAction());

parser.addArgument("--width")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deeply disagree with this design decision. The program should output a sensible width automatically

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neo4j-client has a similar option, :set width=??? (a cli option, allowing width changes at runtime, rather than a command line switch). It also accepts :set width=auto, which checks the terminal window size and sets the size based on that (auto is the default). Assuming Java supports finding the termwidth, perhaps a width option (with default) is a neat solution here too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well if I were designing this, I'd have a single switch: --wrap[=[false|true|INT]] where true would be some kind of automatic width (or sensible value).

.append("\nPlease specify --username, and optionally --password, as argument(s)")
.append("\nor as environment variable(s), NEO4J_USERNAME, and NEO4J_PASSWORD respectively.")
.append("\nSee --help for more info.");
.append("\nPlease specify --username, and optionally --password, as argument(s)")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.lineBreak()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants