How to improve performace of json validation

59 views
Skip to first unread message

techgan...@gmail.com

unread,
Sep 24, 2015, 2:19:05 PM9/24/15
to JSON Schema

To validate the 40000 records it is taking around 60sec. I have plain schema contains 15 fields. Please share us any performance tips related to json schema validation. We are using github related jars.


Thanks in advance,

techgan...@gmail.com

unread,
Sep 24, 2015, 3:13:49 PM9/24/15
to JSON Schema, techgan...@gmail.com


On Thursday, September 24, 2015 at 1:19:05 PM UTC-5, techgan...@gmail.com wrote:

To validate the 40000 records it is taking around 60sec. I have plain schema contains 15 fields. Please share us any performance tips related to json schema validation. We are using git-hub related jars.
code as
              JsonSchemaFactory factory = JsonSchemaFactory.byDefault();
              JsonValidator v = factory.getValidator();
               ProcessingReport report = v.validate(s, d);
      
Let me know if you need any more info.
Thanks in advance,

Andrew Todd

unread,
Sep 28, 2015, 12:09:27 PM9/28/15
to json-...@googlegroups.com
This mailing list is for discussion of the JSON Schema specification. I suggest that you ask your question on the mailing list of the specific validator library you are using, and also provide more specifics.

--
You received this message because you are subscribed to the Google Groups "JSON Schema" group.
To unsubscribe from this group and stop receiving emails from it, send an email to json-schema...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

techgan...@gmail.com

unread,
Sep 28, 2015, 11:20:59 PM9/28/15
to JSON Schema
In my project pom.xml  contains
<dependency>
    <groupId>com.github.fge</groupId>
    <artifactId>json-schema-validator</artifactId>
    <version>2.2.6</version>
</dependency>

code is similar to  http://stackoverflow.com/questions/18154983/how-do-i-validate-incoming-json-data-inside-a-rest-service. Please let me know if you need any more information.
Reply all
Reply to author
Forward
0 new messages