Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Java Database Connectivity (JDBC)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Mueller  
View profile  
 More options Apr 8, 7:38 am
From: Thomas Mueller <thomas.tom.muel...@gmail.com>
Date: Wed, 8 Apr 2009 04:38:05 -0700 (PDT)
Local: Wed, Apr 8 2009 7:38 am
Subject: Java Database Connectivity (JDBC)
Read-only and in-memory and databases such as the H2 Database Engine
and HSQLDB should work. Also supported should be tools that use a
subset of the JDBC API, such as the tool to read a CSV file as a
ResultSet (included in the H2 Database Engine).

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 8, 1:55 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 8 Apr 2009 10:55:38 -0700
Local: Wed, Apr 8 2009 1:55 pm
Subject: Re: [google-appengine-java] Java Database Connectivity (JDBC)

It's true, there's nothing preventing an in-memory database from working,
but keep in mind that with App Engine you can't make good assumptions about
the state of the server you're hitting across requests.  So, while one
request might initialize HSQLDB and load some data into memory, there's no
guarantee a subsequent request is going to hit the server that has already
performed this work.  If you're looking to manage state across requests but
don't want to use the datastore, I'd recommend using the memcache service
instead.

As for reading a CSV file as a ResultSet, that should be fine provided you
upload the CSV file as part of your application and that you don't need to
write to that file.  I suspect that's not too useful though...

Max

On Wed, Apr 8, 2009 at 4:38 AM, Thomas Mueller <thomas.tom.muel...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Mueller  
View profile  
 More options Apr 8, 4:55 pm
From: Thomas Mueller <thomas.tom.muel...@gmail.com>
Date: Wed, 8 Apr 2009 22:55:39 +0200
Local: Wed, Apr 8 2009 4:55 pm
Subject: Re: [google-appengine-java] Re: Java Database Connectivity (JDBC)
Hi,

Sure. The reason I wrote is:

I am the author of the H2 Database Engine, and I think about writing
an open source "JDBC to com.google.appengine.api.datastore wrapper".
That way people can use SQL and the JDBC API (or other libraries that
use it).

Regards,
Thomas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 8, 4:59 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Wed, 8 Apr 2009 13:59:42 -0700
Local: Wed, Apr 8 2009 4:59 pm
Subject: Re: [google-appengine-java] Re: Java Database Connectivity (JDBC)

Sounds very interesting!  It would certainly open up a lot of additional
frameworks for use on App Engine.  I can't think of any security
restrictions that would prevent you from implementing a jdbc driver that
wraps the datastore service, so by all means go for it!

Max

On Wed, Apr 8, 2009 at 1:55 PM, Thomas Mueller <thomas.tom.muel...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
walterc  
View profile  
 More options Apr 11, 4:24 am
From: walterc <weih...@gmail.com>
Date: Sat, 11 Apr 2009 01:24:42 -0700 (PDT)
Local: Sat, Apr 11 2009 4:24 am
Subject: Re: Java Database Connectivity (JDBC)
does that mean my web app could in theory be running in multiple jvms
simultanously?  and is that also the reason google provides an
implementation of servlet session using datastore?

On Apr 9, 1:55 am, Max Ross <maxr+appeng...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 11, 1:18 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Sat, 11 Apr 2009 10:18:59 -0700
Local: Sat, Apr 11 2009 1:18 pm
Subject: Re: [appengine-java] Re: Java Database Connectivity (JDBC)

Yes and yes, although the datastore-backed session is important not just
because your app may be running in multiple jvms but because we don't make
any guarantees about the lifespan of any particular jvm.  In short, you can
try to optimize for the case where requests are being served by the same jvm
but you should never depend on it.

Max


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Edward Gruber  
View profile  
 More options Apr 11, 2:46 pm
From: Christian Edward Gruber <christianedwardgru...@gmail.com>
Date: Sat, 11 Apr 2009 14:46:09 -0400
Local: Sat, Apr 11 2009 2:46 pm
Subject: Re: [appengine-java] Re: Java Database Connectivity (JDBC)
How likely is it that your requests will be served from the same JVM?  
Is it worth even optimizing on that case, or are you better off  
optimizing on flat scaling across the cloud?

Christian.

On 11-Apr-09, at 13:18 , Max Ross wrote:

Christian Edward Gruber
e-mail: christianedwardgru...@gmail.com
weblog: http://www.geekinasuit.com/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Ross  
View profile  
 More options Apr 12, 5:08 pm
From: Max Ross <maxr+appeng...@google.com>
Date: Sun, 12 Apr 2009 14:08:27 -0700
Local: Sun, Apr 12 2009 5:08 pm
Subject: Re: [appengine-java] Re: Java Database Connectivity (JDBC)

It's certainly worth optimizing, but be cautious about how you do it.  For
example, if you have static or slow-changing data that is needed by a large
percentage of your requests, caching that data to avoid the datastore hit is
worthwhile.  The question is, do you read that data into a static cache tied
to a single jvm instance or do you read it into memcache, which is shared
across all the jvms from which your app is serving?  I'd start with memcache
and see if that gets you the performance you need.  Looking at our system
status dashboard, you can see that a memcache get for 10kb of data takes
between 6 and 24 milliseconds:

http://code.google.com/status/appengine/detail/memcache/2009/04/12#ae...

Pretty darn speedy.  Pushing data in has similar performance
characteristics.  So if you cache in memcache you get super fast lookups
that are independent of the jvm your app happens to be serving from.  You
_could_ cache using memory that is specific to your jvm, and it will be
faster, but you may find yourself reloading that data more often because the
data will go away with the jvm.

Max
On Sat, Apr 11, 2009 at 11:46 AM, Christian Edward Gruber <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Edward Gruber  
View profile  
 More options Apr 12, 5:39 pm
From: Christian Edward Gruber <christianedwardgru...@gmail.com>
Date: Sun, 12 Apr 2009 17:39:01 -0400
Local: Sun, Apr 12 2009 5:39 pm
Subject: Re: [appengine-java] Re: Java Database Connectivity (JDBC)
Hmm.  I'm wondering, then, if the @Persist annotation on Tapestry5  
could be back-ended by Memcache, rather than the local session - or is  
the session distributed through memcache?

christian.

On 12-Apr-09, at 17:08 , Max Ross wrote:

Christian Edward Gruber
e-mail: christianedwardgru...@gmail.com
weblog: http://www.geekinasuit.com/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pastel  
View profile  
 More options Apr 16, 11:22 pm
From: Pastel <pastel2...@gmail.com>
Date: Thu, 16 Apr 2009 20:22:31 -0700 (PDT)
Local: Thurs, Apr 16 2009 11:22 pm
Subject: Re: Java Database Connectivity (JDBC)
I'm looking forward to your JDBC wrapper!
Now, we're able to try to migrate our products and services written in
Java to GAE but those don't use JDO/JPA.

And I think that your work is very important for GAE because it allows
people can migrate a lot of existing their J2EE based web application
to GAE around the world.

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google