-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced OrientDB with ArcadeDB (latest version) #745
base: master
Are you sure you want to change the base?
Conversation
Cool! That is a lot less invasive. Have tried kicking the wheels. My primary use case is to install the In this case we run the build to generate the binaries and use those. Doing the build
Has one failing test.
However, we want the zip file so the following does it.
Installing and running to generate simple blog on iMac Pro Intel produces
I wonder if there is an option to not use the cache or clean it out the Installing and running to generate jbake.org generates the following error on both iMac
Where is a good place to change this setting? I tried jbake.config. |
@mhberger I see one difference is that some tests used "memory:" storage type of OrientDB, but in Arcade that's not available: only persistent databases with ArcadeDB. Could it be the database is not deleted between tests from the file system? I've seen the same test failing, but if I run it separately passes. You can set this at startup (before the database is created/opened): NOTE: The page size is a temporary limitation. In the future, if a record is larger than a page, it will be managed transparently without the need to set the page size. |
Thanks! Running with the following does the trick. And for the note that
Some rough timings.
|
Not bad as the first implementation. We can do much better. By the way, I've set this in the constructor, so no need to set anything anymore:
Also, I see
So you can avoid indexing the type and the queries would be faster. Instead of doing Unless type is a dynamic property that can change in a Document or unless you can have arbitrary types created at run-time, using the polymorphism helps. And of course, if you do |
Hi guys, any plans to replace OrientDB with ArcadeDB? |
It's still failing one test :( I would love to run this on m new CI server (which is broken at the moment, since it's M1 :) |
@lprimak what test is failing? I've got a MacBook Pro 16 Intel and everything passes:
|
Well it fails Travis CI that's set up for the project here. |
I see, the failing test is: @Test
public void shouldBakeWithRelativeCustomPaths() throws Exception {
sourceFolder = TestUtils.getTestResourcesAsSourceFolder("/fixture-custom-relative");
configuration = (DefaultJBakeConfiguration) new ConfigUtil().loadConfig(sourceFolder);
File assetFolder = new File(configuration.getDestinationFolder(), "css");
File aboutFile = new File(configuration.getDestinationFolder(), "about.html");
File blogSubFolder = new File(configuration.getDestinationFolder(), "blog");
final Oven oven = new Oven(configuration);
oven.bake();
assertThat(oven.getErrors()).isEmpty();
assertThat(configuration.getDestinationFolder()).isNotEmptyDirectory();
assertThat(assetFolder).isNotEmptyDirectory();
assertThat(aboutFile).isFile();
assertThat(aboutFile).isNotEmpty();
assertThat(blogSubFolder).isNotEmptyDirectory();
} It looks like this is false |
Apologies for the delay in getting back to you on this, I need to think about how best to manage the transition from OrientDB to ArcadeDB for users before I merge this in. |
By the way, we have an importer if needed: https://docs.arcadedb.com/#OrientDB-Importer. You can also call it via API: File databaseDirectory = new File(DATABASE_PATH);
URL inputFile = OrientDBImporterIT.class.getClassLoader().getResource("orientdb-export-small.gz");
OrientDBImporter importer = new OrientDBImporter(("-i " + inputFile.getFile() + " -d " + DATABASE_PATH + " -s -o").split(" "));
importer.run().close(); |
@jonbullock is this PR the best way forward for Apple Silicon (M1) users? |
OrientDB is not supported anymore and has issues with Apple Silicon (see #709). ArcadeDB is a (conceptual) fork, with a new engine, much faster and lighter and no use of JNA/JNI, just 100% pure java and embeddable. Same license (Open Source - Apache 2) and with an active community.
The SQL layer is the same between ArcadeDB and OrientDB, so no need to rewrite the queries.
Run the test cases and it's all green.