Export performance optimization (#475)

* recreate metadata path if needed, before exporting data
This commit is contained in:
bnkai
2020-04-24 05:52:21 +03:00
committed by GitHub
parent ba09bfa64a
commit 9b1518beae
147 changed files with 11923 additions and 9958 deletions

View File

@@ -1,8 +1,8 @@
package jsonschema
import (
"encoding/json"
"fmt"
"github.com/json-iterator/go"
"os"
)
@@ -31,6 +31,7 @@ func LoadMappingsFile(filePath string) (*Mappings, error) {
if err != nil {
return nil, err
}
var json = jsoniter.ConfigCompatibleWithStandardLibrary
jsonParser := json.NewDecoder(file)
err = jsonParser.Decode(&mappings)
if err != nil {