Google Cloud SQL unofficial blog --- Google Cloud SQL is a fully-managed database service that makes it easy to set-up, maintain, manage and administer your relational MySQL databases
Wednesday, February 29, 2012
Cannot deploy updated application to app engine
Will check again in 60 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
Will check again in 60 seconds.
on backend null.
java.lang.RuntimeException: Version not ready.
But in the admin console the application version is created.But not updated and shows previously uploaded version.I created new application id and uploaded then it works successfully and also it successfully works in anoher existing application id.
Can anyone suggest proper solution.
Re: Loading mysql JDBC jar file -
Linsanity - Learn Chinese (Mandarin) faster by using flashcards with pictures
(Mandarin) faster by using flashcards with pictures, thanks
Tuesday, February 28, 2012
Re: System property rdbms.driver must be set
test class I was missing the helper:
public class MyTest
{
private LocalServiceTestHelper mysqlhelper;
@Before
public void setUp()
{
LocalRdbmsServiceTestConfig rdbms = new
LocalRdbmsServiceTestConfig();
rdbms.setDriverClass("com.mysql.jdbc.Driver");
rdbms.setJdbcConnectionStringFormat("jdbc:mysql://localhost:3306/
databasename?
user=databaseuser&password=databasepassword&useInformationSchema=true&useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true");
rdbms.setDatabase("databsename");
rdbms.setPassword("databasepassword");
rdbms.setUser("databaseuser");
mysqlhelper = new LocalServiceTestHelper(rdbms);
mysqlhelper.setUp();
}
@After
public void tearDown()
{
mysqlhelper.tearDown();
}
:
}
Hope that helps someone.
-c.
Re: System property rdbms.driver must be set
public class MyTest{private final LocalServiceTestHelper mysqlhelper = new LocalServiceTestHelper(new LocalRdbmsServiceTestConfig());@Beforepublic void setUp(){mysqlhelper.setUp();}@Afterpublic void tearDown(){mysqlhelper.tearDown();}:}
Loading mysql JDBC jar file -
Instance.
I'm loading the JDBC Driver in my code:
DriverManager.registerDriver(new AppEngineDriver());
Connection c = DriverManager
.getConnection("jdbc:google:rdbms://<projectName>:<InstanceName>/
<DBName>");
On executing locally, I get this error:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Caused by:
java.lang.IllegalStateException: java.lang.ClassNotFoundException:
com.mysql.jdbc.Driver
On forums, I read this:
"Google App Engine doesn't allow you to open Sockets. When you try to
load the JDBC driver, it makes a socket connection in a static block.
An exception in the static block leads to a ClassNotFoundException,
which is what you are seeing..."
Mysql-connector-java-5.1.18-bin.jar is in my Eclipse Build path.
What is the workaround to the Sockets issue in GAE?
In this appengine how-to section for cloudSQL, I don't find any
special reference to taking care of this situation:
https://developers.google.com/cloud-sql/docs/developers_guide_java#register_the_driver
Any pointers greatly appreciated!
Thanks,
-Shiv
Re: App Engine crone jobs not working on cloud sql database in java
Re: Maven GAE Plugin
<plugin>
<groupId>net.kindleit</groupId>
<artifactId>maven-gae-plugin</artifactId>
<version>0.7.3</version>
<dependencies>
<dependency>
<groupId>net.kindleit</groupId>
<artifactId>gae-runtime</artifactId>
<version>${gae.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<jvmFlags>
<jvmFlag>-Drdbms.server=local</jvmFlag>
<jvmFlag>-Drdbms.driver=com.mysql.jdbc.Driver</jvmFlag>
<jvmFlag>-Drdbms.url=jdbc:mysql://localhost:3306/prova?
user=root&password=pass</jvmFlag>
</jvmFlags>
<serverId>appengine.google.com</serverId>
<!-- <sdkDir>${appengine.sdk.root}</sdkDir> -->
<!-- <appDir>${basedir}/war</appDir> -->
</configuration>
</plugin>
THANKS however.
About Maven GAE Plugin again...
<plugin>
<groupId>net.kindleit</groupId>
<artifactId>maven-gae-plugin</artifactId>
<version>0.7.3</version>
<dependencies>
<dependency>
<groupId>net.kindleit</groupId>
<artifactId>gae-runtime</artifactId>
<version>${gae.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<jvmFlags>
<jvmFlag>-Drdbms.server=local</jvmFlag>
<jvmFlag>-Drdbms.driver=com.mysql.jdbc.Driver</
jvmFlag>
<jvmFlag>-Drdbms.url=jdbc:mysql://localhost:3306/prova?
user=root&password=pass</jvmFlag>
</jvmFlags>
<serverId>appengine.google.com</serverId>
</configuration>
</plugin>
You can read more here: https://developers.google.com/cloud-sql/docs/developers_guide_java
First I had this trivial error, doing `mvn gae:run`
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
So I added the "real" driver to my pom.xml:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
</dependency>
with no results. The error remains the same.
Part of the stacktrace:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
com.google.appengine.tools.development.DevAppServerClassLoader.loadClass(DevAppServerClassLoader.java:
87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
com.google.appengine.api.rdbms.dev.LocalRdbmsServiceLocalDriver.registerDriver(LocalRdbmsServiceLocalDriver.java:
84)
at
com.google.appengine.api.rdbms.dev.LocalRdbmsServiceLocalDriver.init(LocalRdbmsServiceLocalDriver.java:
73)
at
com.google.appengine.api.rdbms.dev.LocalRdbmsService.init(LocalRdbmsService.java:
85)
Authorized applications to mysql Instance
Re: DatabaseMetaData on version 5.5
And can not see the list of TABLES in squirrel-sql client.
@Google Cloud SQL Team: Is it by design?
Thanks
Monday, February 27, 2012
App Engine crone jobs not working on cloud sql database in java
Re: Maven GAE Plugin
properties... :-(
Saturday, February 25, 2012
Re: The instance could not be created because you have reached the maximum number of allowed instances
Re: JDO with Google SQL
shows table name as USER123 where as object name is User123. So should
the table name be all uppercase or case-sensitive.
Re: JDO with Google SQL
Data-nucleus can create a table if it doesn't exist. Though I have set
following flag in jdoconfig.xml
<property name="datanucleus.autoCreateSchema" value="true"/>
<property name="datanucleus.validateTables" value="true"/>
<property name="datanucleus.validateConstraints" value="true"/>
<property name="datanucleus.validateColumns" value="true"/>
I don't see neither the table nor the data in google sql But when I
fire the select query from application then I get back the saved data.
Wonder what this puzzle is? and where data is getting saved?
regards
Re: JDO with Google SQL
To view the list of tables after selecting the instance and database.
Friday, February 24, 2012
Re: The instance could not be created because you have reached the maximum number of allowed instances
Re: JDO with Google SQL
as I could see in connection log the string read "jdbc:google:rdbms://
<project_sql_>:<db_instance>/<db_name>". My local database does not
have same instance name and db name.
I am sure it's not hitting the right place in google sql but it seems
to be hitting somewhere and storing records. Wonder how to debug this?
Re: The instance could not be created because you have reached the maximum number of allowed instances
Min Li
Re: The instance could not be created because you have reached the maximum number of allowed instances
The instance could not be created because you have reached the maximum number of allowed instances
migrate my data. Anyone could help to have a check?
The instance could not be created because you have reached the maximum
number of allowed instances.
Thanks,
Re: JDO with Google SQL
Ken
Re: JDO with Google SQL
eclipse is configured to point to sql instance on google servers. What
is puzzling is why I don't see the table in my squirrel or google sql
instance.
Maven GAE Plugin
Good morning,
I am trying to local test my web application, which makes use of:
Spring (core + MVC)
Google AppEngine
Google Cloud SQL
Hibernate
In this page https://developers.google.com/cloud-sql/docs/developers_guide_java
Google explains how to make the hello world run, and that's right. I
deploy to AppEngine with no problems.
The next need is testing on the local system, with a local standard
mysql instance and that document goes ahead in the explanation. You
can give your local access credentials by command-line or by Google
Eclipse Plugin.
But I am using the Maven GAE Plugin http://www.kindleit.net/maven_gae_plugin/
and simple mvn gae:run ends up with this error:
Cannot resolve reference to bean 'mySessionFactory' while setting bean
property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'mySessionFactory' defined in ServletContext
resource [/WEB-INF/spring/root-context.xml]: Invocation of init method
failed; nested exception is java.lang.IllegalStateException: System
property rdbms.driver must be set.:
java.lang.IllegalStateException: System property rdbms.driver must be
set.
at
com.google.appengine.api.rdbms.dev.LocalRdbmsServiceLocalDriver.registerDriver(LocalRdbmsServiceLocalDriver.java:
80)
That's a pretty descriptive error, so I desperately tried:
mvn gae:run -Drdbms.server=local -Drdbms.driver=com.mysql.jdbc.Driver -
Drdbms.url=jdbc:mysql://localhost:3306/prova?user=root&password=pass
... with no result! :-(
Help! O.O
JDO with Google SQL
throwing any error. However I am not able to figure out where my
entity is saving data on google SQL. I saw all three databases and
could not find my entity table and data there. However data has been
persisted as when I try to persist the same entity again, it throw
duplicate key erro.
Thursday, February 23, 2012
Re: Authorizing cloud sql command line tool - Windows
Re: DatabaseMetaData on version 5.5
Wednesday, February 22, 2012
Tuesday, February 21, 2012
Re: Using Ibatis with Google Cloud SQL
I must read the guide before to post any question. The good part is
that Ibatis is supported.
Regards.
Mav.
Monday, February 20, 2012
Authorizing cloud sql command line tool - Windows
Re: Selecting project name
Re: Programmatic/Command Line Exporting of an Instance to Cloud Storage?
-Scott
Re: Terrible performance when deployed to GAE
seem to be working with, so here's some of my ideas:
@Derrick:
Derrick, I poked around your website and it seems to me that you're
building a ratemyprofessors.com-esque site. As for the SQL query, it
looks like you're using myISAM full text searching to search VARCHAR
fields so you can create a simple relevancy ranking (the "score"
field). While that's useful, perhaps you'd be better off to split your
professor/school searches and rewrite your frontend a bit.
For example, if you go to ratemyprofessors.com, and put a professor's
name in the school search field, it won't work. Likewise, if you put a
school's name in the find professors search, it won't find the school
(seriously, go try it, this can wait!). If you can live without a
relevancy ranking, then you can switch to InnoDB and search your
tables with wildcards (i.e. Select * from professor_list where
professor_name LIKE %smith% ). I have an InnoDB table with 40k rows
which I routinely search with similar syntax, and I get searches done
lightning fast.
I'd have to see your data to verify, but my gut instinct tells me you
probably don't need a relevancy ranking; I doubt that most searches
would exceed 4-7 results. If you're really married to the idea of a
relevancy score system, you could probably just reimplement a basic
ranking system in your software once you get back the results of the
wildcard search.
Also, you can reduce the load on your SQL service. You stated in one
message that you were expecting a load of 4k to 8k SQL searches. How
much of that is searching for schools and professors, and what do the
other queries look like? Are you using the other queries to build
other web pages, like school/professor description pages?
If you are using some of the 8k queries to build school/professor
profile pages, then you can decrease a lot of the load by using
memcache to store profile page content. The first time a user looks up
info on a school/professor, you can cache that information in
memcache, then for subsequent visits you can pull data from memcache.
Also, you can async any updates to the database. Suppose someone
writes a review about a professor. It doesn't need to go onto the site
immediately (i think ratemyprofessor moderates postings as well). You
can post any updates to the task queue, then have a backend post
updates from the queue to cloud sql. That way, it doesn't matter if
the database is slow; the backend can wait as long as necessary for
the insert to execute.
While I have some more ideas, I'd need to see your database schemata
and some example data to suggest more.
@eli
I have a table with 40k records, and a table with almost 12 million
records. If I'm only using a simple query, and the db has been given
time to load into memory, I get roughly the numbers you described.
Re: Using Ibatis with Google Cloud SQL
Rob
Selecting project name
Using Ibatis with Google Cloud SQL
Is it possible to use Ibatis with GAE?. I have tried to use it, but it
seems that there is a problem with the Google Cloud SQL driver.
Caused by: java.lang.NoClassDefFoundError: java.util.prefs.Preferences
is a restricted class. Please see the Google App Engine developer's
guide for more details.
at
com.google.appengine.runtime.Request.process-1b8423f1cd7a0109(Request.java)
at java.util.prefs.Preferences.<clinit>(Preferences.java)
at com.google.cloud.sql.Driver.<clinit>(Driver.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:33)
at com.ibatis.common.beans.ClassInfo.instantiateClass(ClassInfo.java:
337)
at com.ibatis.common.resources.Resources.instantiate(Resources.java:
296)
at com.ibatis.common.resources.Resources.instantiate(Resources.java:
283)
at
com.ibatis.common.jdbc.SimpleDataSource.initialize(SimpleDataSource.java:
199)
at
com.ibatis.common.jdbc.SimpleDataSource.<init>(SimpleDataSource.java:
116)
at
com.ibatis.sqlmap.engine.datasource.SimpleDataSourceFactory.initialize(SimpleDataSourceFactory.java:
31)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser
$9.process(SqlMapConfigParser.java:220)
at
com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:
121)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:
105)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:
102)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:
102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:
46)
at
com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:
39)
at
com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:
79)
Sunday, February 19, 2012
DatabaseMetaData on version 5.5
My test snippet as below:
String[] JDBC_METADATA_TABLE_TYPES = {"TABLE"};
Class.forName("com.google.appengine.api.rdbms.AppEngineDriver");
conn = DriverManager.getConnection(url, user, password);
String tableName = ...;
DatabaseMetaData databaseMetaData = conn.getMetaData();
ResultSet tables = databaseMetaData.getTables(null, null, tableName,
JDBC_METADATA_TABLE_TYPES);
boolean existed = tables.next();
// on my old mySQL instance (v5.1): existed = true
// on my new mySQL instance (v5.5): existed = false
I am sure the table tableName is existed in both instances.
Any help is appreciated.
Saturday, February 18, 2012
Re: eclipse arguments missing for each time
using syntax without the "=", for example:
-Drdbms.server local
Friday, February 17, 2012
Re: Terrible performance when deployed to GAE
even the simplest of lookups? I'm seeing 150-300ms noncached, 50
cached, and I'm wondering whether that's normal.
Thursday, February 16, 2012
Re: Incorrect SELECT results in GAE/SQL cloud JDBC?
The cli interface works fine, select, insert and update. And the application works for update and insert, just not select. But I can't figure out why.
randy@netbook:~$ appengine-java-sdk-1.6.1.1/bin/google_sql.sh esbowd1:prototype forecaster
sql> select * from forecasts;
+-------------+---------------+------------+--------------+-------------+------------+---------------+-----------+--------+
| forecast_id | forecast_date | require_by | storage_type | capacity_gb | forecaster | application | servers | active |
+-------------+---------------+------------+--------------+-------------+------------+---------------+-----------+--------+
| 1 | 2012-02-13 | 2012-02-13 | 1 | 1024 | forecaster | Application 1 | server1 | 1 |
| 2 | 2012-02-13 | 2012-02-13 | 1 | 1024 | forecaster | Application 1 | server1 | 0 |
| 3 | 2012-02-13 | 2012-02-13 | 1 | 1024 | forecaster | Application 1 | server1 | 1 |
| 4 | 2012-02-13 | 2012-02-13 | 1 | 2024 | forecaster | Applicatien 1 | server1 | 1 |
| 5 | 2012-02-13 | 2012-02-13 | 2 | 2024 | forecaster | Applicatien 1 | server1 | 1 |
| 6 | 2012-02-13 | 2012-02-13 | 2 | 2024 | forecaster | Application 1 | server1 | 1 |
| 7 | 2012-02-13 | 2012-02-13 | 2 | 2024 | forecaster | Application 1 | server1 | 1 |
| 8 | 2012-02-13 | 2012-02-13 | 2 | 2024 | forecaster | Application 1 | server1 | 1 |
| 9 | 2012-02-13 | 2012-01-01 | 2 | 111 | asdf | NULL | asd | 1 |
| 10 | 2012-02-13 | 2012-02-02 | 2 | 1234 | asdf | NULL | cluser | 1 |
| 11 | 2012-02-14 | 2012-01-01 | 2 | 11223 | asdf | NULL | bachelor | 1 |
| 12 | 2012-02-14 | 2012-01-01 | 2 | 1122 | asdf | NULL | bachelor2 | 1 |
| 13 | 2012-02-14 | 2012-01-01 | 2 | 1122 | asdf | NULL | bachelor2 | 1 |
+-------------+---------------+------------+--------------+-------------+------------+---------------+-----------+--------+
13 rows in set (0.31 sec)
Re: Incorrect SELECT results in GAE/SQL cloud JDBC?
Ken
Wednesday, February 15, 2012
Re: Terrible performance when deployed to GAE
have to do with a specific query. And the request isn't showing up in
appstats because it fails. The ones that do succeed and do show up in
appstats show a ton of time taken for even the most simple queries
(like 300ms), and > 1 second for a single-varcharfield match on a
40,000 entry table.
Re: the abovementioned 1100ms query, this is what I see in appstats:
args = (u'jimmy4@yahoo.com',)
query = 'SELECT `rapleaf_engine_rapleafprofile`.`id`,
`r...h_user`.`id`) WHERE `auth_user`.`email` LIKE %s '
self =
CursorWrapper<cursor=Cursor<_conn=ApiProxyConnection<_deadline_seconds=30.0,
_dsn=None, ...>, ...>>
do those latencies sound way high to you?
Re: Terrible performance when deployed to GAE
half.
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
happy to. Let's see:
instance: 2-appstats.simplerelevance
here's a copy from the log (I changed the api key slightly in the
interest of security):
2012-02-15 13:55:55.391 /api/v2/items?
api_key=90cefa0e8596a3bc3b5c&async=0&email=emilywhite@yahoo.com 500
60261ms 3kb Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML,
like Gecko) Chrome/16.0.912.77 Safari/535.7
173.109.17.127 - elialbert [15/Feb/2012:11:55:55 -0800] "GET /api/v2/
items?api_key=90cefa0e8596a3bc3b5c&async=0&email=emilywhite@yahoo.com
HTTP/1.1" 500 3557 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/
535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7" "2-
appstats.simplerelevance.appspot.com" ms=60261 cpu_ms=3867
api_cpu_ms=0 cpm_usd=0.107996
instance=00c61b117c2569016bd4065f1c17a790c5ba
This call resulted in a database timeout connection error because it
took so long (as you can see, 60 seconds). I made a separate post
about it in this group. A lot of my database calls are resulting in
similar issues.
Thanks in advance-
Eli
Re: Terrible performance when deployed to GAE
API call rdbms.CloseConnection() was explicitly cancelled?
bet are cold starts. I'm running cloud sql with django.
Any ideas?
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/runtime/wsgi.py", line 193, in Handle
result = handler(self._environ, self._StartResponse)
File "/base/python27_runtime/python27_lib/versions/third_party/
django-1.2/django/core/handlers/wsgi.py", line 255, in __call__
signals.request_finished.send(sender=self.__class__)
File "/base/python27_runtime/python27_lib/versions/third_party/
django-1.2/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/base/python27_runtime/python27_lib/versions/third_party/
django-1.2/django/db/__init__.py", line 84, in close_connection
conn.close()
File "/base/python27_runtime/python27_lib/versions/third_party/
django-1.2/django/db/backends/__init__.py", line 70, in close
self.connection.close()
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 523, in close
self.MakeRequest('CloseConnection', request)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms.py", line 606, in MakeRequest
response = self.MakeRequestImpl(stub_method, request)
File "/base/python27_runtime/python27_lib/versions/1/google/storage/
speckle/python/api/rdbms_apiproxy.py", line 66, in MakeRequestImpl
apiproxy_stub_map.MakeSyncCall('rdbms', stub_method, request,
response)
File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall
return stubmap.MakeSyncCall(service, call, request, response)
File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/apiproxy_stub_map.py", line 308, in MakeSyncCall
rpc.CheckSuccess()
File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/api/apiproxy_rpc.py", line 133, in CheckSuccess
raise self.exception
CancelledError: The API call rdbms.CloseConnection() was explicitly
cancelled.
Re: Terrible performance when deployed to GAE
terrible latency on sql appengine-P, similar to what you're
describing. I wonder if anybody's figured out what's going on?
Tuesday, February 14, 2012
Re: Incorrect SELECT results in GAE/SQL cloud JDBC?
create table forecasts
(
forecast_id int unique not null auto_increment,
forecast_date DATE,
require_by DATE,
storage_type int,
capacity_gb int,
forecaster varchar(25),
application varchar(255),
servers varchar(255),
active boolean
);
And here are the functions from the MVC Controller. First the
getForecasts() that is the query that isn't working as expected. The
executeQuery() returns only an empty ResultSet with no records
fetched.
private ResultSet getForecasts()
{
//ResultSet set;
//String haveForecasts=(String)
currentSession.getAttribute("haveForecasts");
//if ( haveForecasts ==null || haveForecasts.equals("n"))
//{
//String getForecasts="select * from forecasts where
active=true";
String getForecasts="SELECT forecast_id, forecast_date,
require_by, storage_type, capacity_gb, forecaster, application,
servers, active FROM forecasts";
logger.info(getForecasts);
try
{
//set=stmt.executeQuery(getForecasts);
return(stmt.executeQuery(getForecasts));
//logger.info("Fetched Size: "+set.getFetchSize());
}
catch(Exception e)
{
e.printStackTrace();
logger.severe("On getting the Forecasts from Database\n"+e);
}
//}
return (ResultSet) null;
}
There is alot of stuff commented out that looks redundant, but this
was only for troubleshooting
This delete function works correctly.
private void deleteForecast(String passedID)
{
String delete_stmt="update forecasts set active=false where
forecast_id='"+passedID+"';";
logger.info(delete_stmt);
try
{
stmt.executeUpdate(delete_stmt);
}
catch(Exception e) {e.printStackTrace(); }
}
And here us how I initialized the DB.
else if ( google.equals("true"))
{
DriverManager.registerDriver(new AppEngineDriver());
logger.info("DB Parms: "+driver+" : "+url);
//Class.forName(driver).newInstance();
conn = DriverManager.getConnection(url);
}
else
{
logger.info("Unknown Database to open");
}
stmt=conn.createStatement();
logger.info("Database connection established");
}
Hope this help, there is alot of other code, but this is really all
that is involved in the query.
Any insight would be appreciated.
Randall
Re: Incorrect SELECT results in GAE/SQL cloud JDBC?
Incorrect SELECT results in GAE/SQL cloud JDBC?
I built an GAE app using the documented JDBC drivers and process for
initialing for integrating with the Google SQL Cloud. The app builds
and deploys fine, no errors or warnings.
When I deploy and launch the app locally on a Tomcat/MySQL platform,
everything works correctly, even the SELECT statement that is giving
me issued the GAE cloud.
When I push to GAE, and SQL Cloud, my select statement doesn't return
any rows, even though there are rows in the Cloud SQL DB. There are no
errors in the log, and my code verifies I am connected. I also know
I'm connected because I'm able to insert into the database using the
same Statement object with no problem. I've verified the insert on the
SQL Cloud CLI Tool. I've also confirmed the correctness of the select
statement with the API Tool as well. But when running within the GAE,
the ResultSet for my SELECT statement is empty.
Has anyone seen any issues like this? Or know of any fixed, etc?
I am intentionally not including the code in this initial post since
it's is pretty large and cumbersome, if required I can post it.
Any ideas or thoughts on this would be appreciated!
Re: Unexpected Error.... what?
The new project ID is 277456819003. Appreciate the help!
-Keir
Monday, February 13, 2012
Re: Unexpected Error.... what?
Re: Unexpected Error.... what?
Re: Unexpected Error.... what?
an instance. Project ID is 769919244453.
Thanks!
Friday, February 10, 2012
Re: Desarrollo
Thursday, February 9, 2012
Re: eclipse arguments missing for each time
Re: eclipse arguments missing for each time
eclipse arguments missing for each time
Re: How to set autocommit Off
Wednesday, February 8, 2012
Re: Support Kanji Characters
Re: Support Kanji Characters
Re: How to set autocommit Off
Re: Django 1.3 problem
Re: Django 1.3 problem
Re: Django 1.3 problem
Django 1.3 problem
Traceback (most recent call last): File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 193, in Handle result = handler(self._environ, self._StartResponse) File "/base/python27_runtime/python27_lib/versions/third_party/django-1.2/django/core/handlers/wsgi.py", line 248, in __call__ response = self.get_response(request) File "/base/python27_runtime/python27_lib/versions/third_party/django-1.2/django/core/handlers/base.py", line 141, in get_response return self.handle_uncaught_exception(request, resolver, sys.exc_info())
.... TemplateSyntaxError: Caught ImportError while rendering: No module named staticfiles
What am I doing wrong? How can I force appenigne to use django-1.3?
Tenzing != Google Cloud SQL ?
Tuesday, February 7, 2012
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
I've decided to hold off on deploying it here, until things seem to
stabilize.
Re: Terrible performance when deployed to GAE
I'm moving all my stuff off GAE effective immediately.
Sunday, February 5, 2012
How to set autocommit Off
Saturday, February 4, 2012
Learn Chinese (Mandarin) faster by using flashcards with pictures
(Mandarin) faster by using flashcards with pictures, thanks
Thursday, February 2, 2012
Re: What's the roadmap
Re: geospatial queries
Re: Terrible performance when deployed to GAE
See the link: (sorry for the extra line-break, just trying to keep
this from being indexed by search engines).
http://1-0-3.pro
feval3.appspot.com/School/908/Western_Kentucky_University_(WKU)
Latencies from app engine log are: 11, 10, 9, 9, 164, 152, 12, 9, 11,
11, 10 ms
Network settings, in Chrome developer tools show the pages coming back
in ~55 milliseconds.
DOMContentLoaded: <100ms
This is what I like to see, now if only it were consistent.
Re: What's the roadmap
What's the roadmap
available for using in enterprise GAE applications?
Wednesday, February 1, 2012
No partitions allowed?
My activation link expired
I did request a SQL service from you. But some how activation/welcome mail went to spam folder and it got deleted. How can I get restore or get a new one.
Thanks
G. Sridhara
Re: Terrible performance when deployed to GAE
How much ram are we talking regarding innoDB vs MyISAM?
Re: Terrible performance when deployed to GAE
At times however (yesterday) it was/is blazingly fast. Seems like ita spexific to an app engine VM. As any amount of time after a cold start (2 hrs) its still really slow (with no app changes) .
Thanks,
Derrick
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
Re: Terrible performance when deployed to GAE
problem.
Re: Will the data-store of Google app engine be integrated into Google Cloud SQL?
Will the data-store of Google app engine be integrated into Google Cloud SQL?
Re: Terrible performance when deployed to GAE
Plans for Google Cloud SQL
Re: Terrible performance when deployed to GAE
Requests that normally take well below 200ms are taking 4 to 5 seconds
(if I'm lucky).
I occasionally get requests which take over 20 to 30 seconds.
Re: After upgrade to 5.5 "Cannot load from mysql.proc"
Re: MySQL clients
--
Joe Faith | Product Manager | Google Cloud
MySQL clients
Mysql front, or any other?
Or do I have to use squirell, mandatory?
Thank you
After upgrade to 5.5 "Cannot load from mysql.proc"
Will the data-store of Google app engine be integrated into Google Cloud SQL?
Re: Postgres
function in MySQL.
All other features are in MySQL too... But Window Functions are still
great.
But if no plans for Postgres I will/must use MySQL.
Thanks