opendatatrentino / disi-open-data-client

0 stars 0 forks source link

EntityTypeService.readAllEntityTypes makes one webapi call per each etype #3

Open DavidLeoni opened 10 years ago

DavidLeoni commented 10 years ago

In order to have attribute defs inside the etypes, EntityTypeService.getAllEntityTypescalls AttributeDefinitionClient.readAttributeDefinitions() for each etype, thus making one webapi call per each etype which is very slow

ITankoyeu commented 10 years ago

I have checked the time needed for getting all etypes with all attrdefs (currently 25 etypes). It takes only 2176 miliseconds (~2 seconds only). Unfortunatelly, get them with one call is not supported yet from the server side.

DavidLeoni commented 10 years ago

It takes only 2176 miliseconds

It takes that much when server is behaving properly. Yesterday Enrico made some adjustment to Tomcat - let's hope performance keeps that good.

ITankoyeu commented 10 years ago

So... we need to make sure that server is behaving properly :)