Re: [Geoserver-users] Geopackage queries

2022-06-01 Thread Andrea Aime
Hi Olivier,
this issue has been fixed a few months ago:
https://osgeo-org.atlassian.net/browse/GEOT-7054

Given the "fix for" tags it should be included in 2.19.6, 2.20.4 and
2.21.0. Are you using an older version?

Cheers
Andrea

On Tue, May 31, 2022 at 9:43 PM Olivier Gagnon  wrote:

> Hi,
>
> I'm facing very slow WFS queries with geopackage (sqlite).
>
> If I use PropertyIsBetween filter, Geoserver formats the SQL query
> including the filter in the where clause :
>
> WHERE ("ID" BETWEEN 1 AND 1000 AND "ID" IS NOT NULL )
>
> But when PropertyIsLike is used, geoserver doesn't add it to the SQL where
> clause thus preventing the use of the sqlite db engine and perform the
> filter itself which is very slow.
>
> I tried using a FTS5 virtual table but geoserver doesn't "see" it even
> with a sql view.
>
> Is there a way to indicate to geoserver to use db engine to perform the
> like clause ?
>
> Thanks
>
> Envoyé à partir d’Outlook 
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob:   +39  333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

---

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geopackage queries

2022-06-01 Thread Ian Turton
On Tue, 31 May 2022 at 20:11, Olivier Gagnon  wrote:

> Hi,
>
> I'm facing very slow WFS queries with geopackage (sqlite).
>
> If I use PropertyIsBetween filter, Geoserver formats the SQL query
> including the filter in the where clause :
>
> WHERE ("ID" BETWEEN 1 AND 1000 AND "ID" IS NOT NULL )
>
> But when PropertyIsLike is used, geoserver doesn't add it to the SQL where
> clause thus preventing the use of the sqlite db engine and perform the
> filter itself which is very slow.
>
> I tried using a FTS5 virtual table but geoserver doesn't "see" it even
> with a sql view.
>
> Is there a way to indicate to geoserver to use db engine to perform the
> like clause ?
>

You would need to modify the GeoPkgFilterToSQL code (
https://github.com/geotools/geotools/blob/main/modules/plugin/geopkg/src/main/java/org/geotools/geopkg/GeoPkgFilterToSQL.java)
to handle that construct, though I would have expected the default JDBC
class (
https://github.com/geotools/geotools/blob/494d2e0a7bd004d7fb7c6d758eb6a3597acda9fc/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/FilterToSQL.java#L514)
to handle it.

Can you provide an example of the query that is not working?

Ian



> Thanks
>
> Envoyé à partir d’Outlook 
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 
Ian Turton
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geopackage queries

2022-05-31 Thread Olivier Gagnon
Hi,

I'm facing very slow WFS queries with geopackage (sqlite).

If I use PropertyIsBetween filter, Geoserver formats the SQL query including 
the filter in the where clause :

WHERE ("ID" BETWEEN 1 AND 1000 AND "ID" IS NOT NULL )

But when PropertyIsLike is used, geoserver doesn't add it to the SQL where 
clause thus preventing the use of the sqlite db engine and perform the filter 
itself which is very slow.

I tried using a FTS5 virtual table but geoserver doesn't "see" it even with a 
sql view.

Is there a way to indicate to geoserver to use db engine to perform the like 
clause ?

Thanks


Envoyé à partir d’Outlook
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users