On Wed, Sep 2, 2015 at 1:21 AM, Martin Davis <mtncl...@gmail.com> wrote:

> We've run some DB logging on the map requests.
>
> One of the causes of the slowdown for no schema is this query:
>
> SELECT NULL AS table_cat,
>        o.owner AS table_schem,
>        o.object_name AS table_name,
>        o.object_type AS table_type,
>        NULL AS remarks
>   FROM all_objects o
>   WHERE o.owner LIKE :1 ESCAPE '/'
>     AND o.object_name LIKE :2 ESCAPE '/'
>     AND o.object_type IN ('xxx', 'TABLE', 'VIEW', 'SYNONYM')
>   ORDER BY table_type, table_schem, table_name
>
> If no owner is specified this returns 38K rows, as opposed to about 240
> when owner is given.
>
> I'm not totally sure what this is doing, but I suspect checking for
> Primary Key info?
>
> And why is this being run on each MapRequest ?
>
> Funnily, we have 2.6.3 running in a different setup, and it doesn't seem
> to be issuing any of these queries - just the data query. I can't see any
> config difference that would cause this.
>

Maybe not so funny, I remember of a major performance regression in JDBC
stores in 2.6.0,
indeed it was very slow against spatial databases, see the 2.6.1 release
notes:
http://blog.geoserver.org/2014/11/18/geoserver-2-6-1-released/

Discussion here:
http://osgeo-org.1560.x6.nabble.com/Severe-slowdown-in-ContentDataStore-in-12-x-and-trunk-td5167030.html

To avoid this kind of issue, besides more review, which never hurts but
requires more staff, we'd need
continuous performance testing and comparison against production sized
databases, something
I've been proposing on and off for several years, but that never got the
resourcing it needs to make it happen.

Cheers
Andrea


-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to