On Mon, Apr 11, 2016 at 2:35 AM, Raif S. Naffah <raif@anonymised.com> wrote:
> least). So... I believe we'd have to try and upgrade gt-jdbc-h2 to v
> 2.x, not sure how hard it would be.
i take it you meant version 1.2 or later referring to H2.
Yes, sorry.
over the weekend i downloaded the sources for Justin's geodb [5]
(tagged version 0.8) and GT 14.3. i was able to build locally a geodb
0.9-SNAPSHOT using the latest stable H2 (1.3.176) and hatbox [6]
(1.0.b9) (the library used by geodb for spatial indexing) w/o problems.
i then used this version to build gt-jdbc-h2. i was able to do that w/
few modifications to the SQL used in 3 H2xxxTestSetup classes [7].
w/ this all 325 tests pass. this to me means it's possible w/ little
effort.
That's good news. Maybe make a pull request out of it?
The geometry usage is worrysome, it would mean a play "dump and restore"
upgrade would not work for H2 databases due to the type name conflict.
As said, maybe not such a bit deal, hopefully not too many people use it
in production.
> 2) is hard to justify because I believe not very many people use
> gt-jdbc-h2 as the storage, but all of our database integration tests
> in GeoServer and some in geotools do, so ... uff... we'd have to do
> some work here anyways (basicaly back to 1), assuming it's ok to
> drop the axe on actual gt-jdbc-h2 production
> users, hopefully there are few/none)
i think gt-jdbc-h2 should stay as is relying on geodb. in addition to
what you've already mentioned it is an example implementation for adding
spatial capability to Derby/JavaDB if needed using hatbox --a Google
Summer of Code project may be?
Looks like a good idea, if we can find a mentor (we haven't had any
available
for some time now).
> 3/4/5 is annoying because H2 seems to have provided no upgrade path
> from 1.x to 2.x...
i take it you don't consider H2's 'Database Upgrade Helper' tool
appropriate. w/ this tool upgrading existent databases sounds analog
to upgrading PostgreSQL + PostGIS tables: the upgrade is done
separately from GS.
Having to perform some manual changes against the data directory
in order to upgrade is something that we haven't required... probably never?
Not even going from 1.x to 2.x, the upgrade path was fully automated,
even if the two data dirs look nothing alike.
That said, maybe it's possible to use that tool from code, in such
case, one could probably automate all the database migrations.
>... for disk quota and superoverlay I guess we could
> just change the location/name of files, drop the old ones, and
> have the system rebuild the database from scratch (might take
> hours the first startup, especially if one has a large tile cache on
> disk with disk quota enabled, the system would have to crawl each and
> every tile).
all valid issues for the developers to consider. for me as a GS user
having the standard distribution contain the latest stable H2 is a step
forward.
Eh, we've been discussing this upgrade for a long time... hopefully we'll
find
a good samaritan down the road that will either take on the work to do
it in its spare time, or find a way to sponsor it
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 di Montramito 3/A
55054 Massarosa (LU)
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.
-------------------------------------------------------