Hi everybody,
I am using Postgresql/PostGIS database as datastore and I use App-schema
plugin to bring the data to INSPIRE-schema. I have a problem with larger
data sets with performance. When I do the WFS query with parameter "count=1"
for data set with 200000 rows, it takes almost 20 seconds (There is a part
of the log file from that query in the end of this mail). When there are
100k rows, it takes about 5 seconds. And with smaller data sets the query is
fast. WFS query is also fast with all size of data base tables if I don't
use app-schema mapping, i.e. only set the datastore for ordinary geoserver
datastore without mapping.
I have geometric indexes and other indexes set in the database tables.
I don't know if the app-schema.joining is working properly and if all the
configuration conditions are met. Where should I add this
"app-schema.joining = true"? I didn't have app-schema.properties - file in
/var/lib/tomcat-7/webapps/geoserver/WEB_INF/classes -folder. So I made the
file myself. What should be the whole content of the file? Could I add it
somewhere else and how do I know if it is working?
I have also added to /etc/conf.d/tomcat-7 -file some parameters for
optimization. (JAVA_OPTS="-server -Xms512M -Xmx4096M -XX:MaxPermSize=512M
-XX:+UseParallelGC). I have 4GB of memory at the server.
As you might notice I'm not so familiar with this whole subject yet thus the
questions are not so well formed. Sorry for that. If somebody could give any
advice to try to solve the problem I would appreciate. Now I am using
geoserver version 2.3.2. I can provide more information if needed.
Best Regards,
Eero
p.s. I have another issue also for the same project with filtered queries
which I have not solved yet.
http://osgeo-org.1560.x6.nabble.com/application-schema-and-wfs-query-with-bbox-tc5063574.html
______
2013-07-17 08:46:37,323 TRACE [ows.OWSHandlerMapping] - No handler mapping
found for [/ows]
2013-07-17 08:46:37,323 DEBUG [ows.OWSHandlerMapping] - Mapping [/ows] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@anonymised.com]
and 1 interceptor
2013-07-17 08:46:37,324 INFO [geoserver.wfs] -
Request: getServiceInfo
2013-07-17 08:46:37,329 DEBUG [geoserver.requests] - Query is
org.geoserver.wfs.request.Query$WFS20@anonymised.com
To gt2: Query:
feature type: StandingWater
filter: Filter.INCLUDE
[properties: ALL ]
2013-07-17 08:46:37,330 INFO [geoserver.wfs] -
Request: getFeature
service = WFS
version = 2.0.0
baseUrl = http://server/geoserver/
abstractQueryExpressionGroup[0] =
wfs:abstractQueryExpression=net.opengis.wfs20.impl.QueryTypeImpl@anonymised.com
(handle: null) (abstractProjectionClause: null, abstractSelectionClause:
null, abstractSortingClause: null, aliases: null, typeNames:
[{urn:x-inspire:specification:gmlas:HydroPhysicalWaters:3.0}StandingWater])
(featureVersion: null, srsName: null, filter: null, propertyNames: null,
sortBy: null)
abstractQueryExpression[0]:
typeNames[0] =
{urn:x-inspire:specification:gmlas:HydroPhysicalWaters:3.0}StandingWater
count = 1
outputFormat = text/xml; subtype=gml/3.2
resolve = none
resolveDepth = *
resolveTimeout = 300
resultType = results
2013-07-17 08:46:37,335 DEBUG [geotools.xml] - building schema for schema:
urn:x-inspire:specification:gmlas:HydroPhysicalWaters:3.0
2013-07-17 08:46:37,348 DEBUG [geotools.jdbc] - CREATE CONNECTION
2013-07-17 08:46:37,348 DEBUG [geotools.jdbc] - SELECT
"public"."jarvi10"."jarvinro","public"."jarvi10"."gid","public"."jarvi10"."jarvitunnu","public"."jarvi10"."j_jarvi_id","public"."jarvi10"."nimi","public"."jarvi10"."pala_ha","public"."jarvi10"."valtio","public"."jarvi10"."rajatieto","public"."jarvi10"."kvnro","public"."jarvi10"."muutospvm","public"."jarvi10"."shape_star","public"."jarvi10"."shape_stle","public"."jarvi10"."shape_area","public"."jarvi10"."shape_len",encode(ST_AsEWKB("public"."jarvi10"."geom"),'base64')
as "geom" FROM "public"."jarvi10" ORDER BY "public"."jarvi10"."jarvinro" ASC
2013-07-17 08:46:46,328 TRACE [complex.filter] - ENTRY
FeatureImpl:StandingWater<StandingWaterType id=2005062000009>=
hy-p:geographicalName/gn:GeographicalName/gn:language null null null
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Performance-issue-with-App-schema-tp5066947.html
Sent from the GeoServer - User mailing list archive at Nabble.com.