Is saving to .saw format still supported? #950
Answered
by
lwhite1
apostolos-geyer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I would recommend not using it as it's probably not entirely stable.
You can usually save considerable time by providing the column types in the
builder, since it will skip the type determination process.
…On Wed, May 26, 2021 at 1:07 PM pauljamesgeyer ***@***.***> wrote:
Is saving in .saw format still supported?
I was trying to do so as was detailed on an old blog post here
<https://jtablesaw.wordpress.com/user-guide/tables/>:
String dbName = tornadoes.save("/tmp/tablesaw/testdata"); Table tornadoes
= Table.readTable(dbName);
However, when I try to do something similar
String dbName = byPHU.save("Positive-Cases-by-Public-Health-Unit"); (I
didn't specify a path as I assume it will just save it into the project
directory), Netbeans IDE gives me the warning:
[image: Screen Shot 2021-05-26 at 12 59 24 PM]
<https://user-images.githubusercontent.com/79337131/119701316-34447800-be22-11eb-8947-30de77fdfff1.png>
I was looking to save it to .saw as using .read().csv() takes a solid
20-30 seconds for my dataset and, according to that blog post
If you use a large table more than once, you may want to save it in
Tablesaw’s compressed columnar “.saw” format. In .saw format, reads and
writes are (at least) an order of magnitude faster than the equivalent CSV
operations, and disk usage is also greatly reduced.
I combed through the documentation and couldn't find any solutions,
however I may have just missed it, sorry if that's the case. If the method
no longer exists, is there a new one that I'm missing, or a different means
of speeding up the initialization of large tables?
Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#950>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2FPAS7ZHW2PCVSBJ5MR6LTPUTFVANCNFSM45SPZA4A>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
apostolos-geyer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is saving in .saw format still supported?
I was trying to do so as was detailed on an old blog post here:
String dbName = tornadoes.save("/tmp/tablesaw/testdata"); Table tornadoes = Table.readTable(dbName);
However, when I try to do something similar
String dbName = byPHU.save("Positive-Cases-by-Public-Health-Unit");
(I didn't specify a path as I assume it will just save it into the project directory), Netbeans IDE gives me the warning:I was looking to save it to .saw as using
.read().csv()
takes a solid 20-30 seconds for my dataset and, according to that blog postI combed through the documentation and couldn't find any solutions, however I may have just missed it, sorry if that's the case. If the method no longer exists, is there a new one that I'm missing, or a different means of speeding up the initialization of large tables?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions