fauna-labs / faunadb-importer Goto Github PK
View Code? Open in Web Editor NEWImporter tool to load data into FaunaDB
Home Page: https://fauna.com
License: Other
Importer tool to load data into FaunaDB
Home Page: https://fauna.com
License: Other
Right now it's confusing. I was thinking about something simpler and wait for feedback. Like:
Completed: 42% Errors: 2 RPS: 123 Latency(client/server): 12.2/5.2
For testing purposes I tried to import a very simple JSON file into the developer version of faunadb:
.\bin\faunadb-importer.bat import-file --endpoints http://localhost:8443 --secret ABCDEF --class simple test.json
Here is my import file (test.json):
[{
"name": "ABC",
"address": {
"city": "Wien",
"country": "AT",
"street": "Testgasse 4",
"zip": "1210"
}
},
{
"name": "DEF",
"address": {
"city": "Wien",
"country": "AT",
"street": "Testgasse 10",
"zip": "1010"
}
}
]
The error:
[2017-09-21 22:02:24] validation failed: Instance data is not valid. at line: 1, column: 1: [{ "name": "ABC", "address": { "city": "Wien", "country": "AT", "street": "Testgasse 4", "zip": "1210" } }, { "name": "DEF", "address": { "city": "Wien", "country": "AT", "street": "Testgasse 10", "zip": "1010" } }]
It should contain a directory file structure as well as executables for linux a windows.
Measure:
For slow networks, we expect timeouts and other networks related issues to happen. We could retry batches in those case. Monix has a good helper for that: https://monix.io/docs/2x/eval/circuit-breaker.html
Version 1.2.0 of scala driver will allow us to:
There is a bug on the scala driver that needs to be fixed: fauna/faunadb-jvm#110
Once that is in we're going to be able to use the status code from a http error to decide when to retry for the http code 413. We're currently relying exception message, which itself has a typo.
Hi
We are looking to import csv with arrays of refs, is there a way to do this with the importer?
Examples code with a ref to another file - ref is currently a single ref but we have records which have multiple refs.
data/test1.csv:
class: test1
fields:
- name: id
type: ref
- name: name
type: string
ignoredFields:
- id
data/test2.csv:
class: test2
fields:
- name: user_id
type: ref(test1) # We would like this to be an array of brands
Thank you in advance!
Hi,
I have a file with lines of JSON like
{
"id": "3924",
"name": "Mary"
}.
I can upload it with no problems but the "id" field that I mark as ref using the parameter
--format "id:ref"
is ignored and the record gets a different ref (generated automatically) like "198480451673784842"
Ref
q.Ref("classes/my-class/198480451673784842")
Class
q.Ref("classes/my-class")
TS
1525544559283937
Data
{
"id": "3924",
"name": "Mary"
}
Am I missing something?
Thank you
Not sure if we need to support java 7. Maybe it's work exploring to see how hard that would be.
If errors occured during import, the next import attempt will failed too, because the temp working file (cache) is not cleared, i need to manually delete the file to make it works.
logs/errors.log
already give users a good idea on what went wrong but, there are cases where that will not be sufficient. We need a place to programmatically recover missing entries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.