Re: [google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread Nickolas Daskalou
You could get the dev server to update index.yaml with the dynamic indexes
by running a query on the dev Datastore that would require the desired index
on your dynamic entity kind. However if it's not possible to know all the
dynamic entity kinds you'll need on the live server, then this wouldn't
work.

What about creating a base PolyModel class, and have all your dynamic entity
kinds inherit from that?


2010/1/9 RyanD 

> Hmm, nevermind, I see the issue in the issue tracker related to an
> "Index Management API".  I guess I'm not the only one. Starring it.
>
> On Jan 8, 1:46 pm, RyanD  wrote:
> > One followup question to the case described above:
> >
> > If I want entity types that are application controlled, and
> > dynamically created through the low level API (as described above),
> > then there is no way to create indexes unless there is also some kind
> > of low level API for index creation.  As it stands the index files
> > appear to be a static part of the uploaded application files, which
> > wouldn't work with dynamically create entity types.  Am I
> > understanding this index "limitation" correctly?  If so, are there any
> > long term plans for a low level index API?
> >
> > Ryan
> >
> > On Nov 19 2009, 11:53 am, "Ikai L (Google)"  wrote:
> >
> >
> >
> > > Ryan,
> >
> > > The answer to both of your questions is "no" with a gotcha. Unlike an
> RDBMS
> > > in which tables can enforce some degree of the concept of "Type",
> BigTable
> > > has no concept of type or tables. Entities are mapped by an Entity
> index,
> > > which in turn is also stored in BigTable. Searchable/filterable fields
> on an
> > > entity also generate indexes, and composite indexes are also generated
> > > depending on what queries are being done. There is no limit to the
> amount of
> > > entities you can store, but you will only be able to retrieve 1000 with
> any
> > > given query until we release cursor support in an upcoming release.
> >
> > > We'll be publishing an article that describes how the data store works
> > > underneath the hood soon. I'll post it when it goes live.
> >
> > > On Sat, Nov 14, 2009 at 5:55 PM, RyanD  wrote:
> > > > A couple of quota questions:
> >
> > > > 1)  Mainly:  I'm looking to develop an application that has an
> > > > *unbounded* number of entity types / kinds (by using the low level
> > > > Java API). Is this possible, or is there some limit to the number of
> > > > entity types / kinds that an application may have?
> >
> > > > 2)  Any limit on the number of entries for a single entity type /
> > > > kind?
> >
> > > > Thanks,
> >
> > > > Ryan
> >
> > > > --
> >
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google App Engine" group.
> > > > To post to this group, send email to
> google-appeng...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine?hl=.
> >
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google App Engine" group.

To post to this group, send email to google-appeng...@googlegroups.com.

To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] torrent-server : store and serve really big files using BitTorrent

2010-01-08 Thread OvermindDL1
On Fri, Jan 8, 2010 at 11:22 AM, Gavin  Andresen
 wrote:
> I wanted to learn more about App Engine and the BitTorrent protocols,
> and I figured the best way to learn is by doing.  So I've created
> 'torrent-server'; it lets you:
>
> Upload arbitrarily large files into the App Engine datastore (using a
> command-line python client and the App Engine remote_api, splitting
> them up into pieces smaller than the maximum datastore BLOB size).
>
> Download them using a BitTorrent client that supports the BitTorrent
> "webseed" protocols (you can also download directly via HTTP if the
> file is smaller than the 10MB App Engine response limit).  Downloading
> large, popular files this way will save you bandwidth costs, because
> the BitTorrent clients will try to get the file from each other first,
> and only use your server if they can't find other clients that have
> (or are downloading) pieces of the file.
>
> I also incorporated Allen Porter's "open-tracker" code, so torrent-
> server acts as a self-contained BitTorrent serving and tracking
> solution.
>
> Code is available (via svn checkout) at:  
> http://code.google.com/p/torrent-server/
> You can see it running at:  http://torrent-server.appspot.com/

Oh that is fascinating, could definitely cut down on bandwidth costs
if they share with each other too.  Do you throttle the server so it
does not send at max speed so the clients are more apt to get from
each other?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Using MySQL

2010-01-08 Thread Sandeep Sathaye
You can also look at Cloud2db. We have implemented a relational database on
Google Bigtable accessible via JDBC and SQL.

http://www.cloud2db.com


On Fri, Jan 8, 2010 at 10:14 AM, David  wrote:

> If you are committed to both an RDBS and to Appengine, take a look at
> Rdbhost.  We host Postgresql relational databases, accessible via a
> web-service (ie: the GAE urlfetch module).  We provide a Python DB API
> module that works under GAE.
>
> https://www.rdbhost.com
>
> There is a very simple GAE example in the downloads area.
>
> http://www.rdbhost.com/downloads.html#examples
>
>
> On Thu, Jan 7, 2010 at 3:03 PM, raees  wrote:
> > Can I use MySql on google app engine ? if not what database support is
> > available
> >
> > Thanks
> > Raees
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
> >
> >
> >
> >
>
>
>
> --
> dkee...@travelbyroad.net
> Rdbhost -> SQL databases as a webservice [www.rdbhost.com]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google App Engine" group.

To post to this group, send email to google-appeng...@googlegroups.com.

To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] What's the quickest way to insert into DB in either Java or Python?

2010-01-08 Thread Sameer
Of the two languages and the associated web frameworks, what is the
quickest way to insert or update an entry into the datastore?

Specifically, which framework on either appengine python or java has
the lowest per request overhead? In python, I imagine it would be
webpy, is there anything equivalent or faster/lighter in java?

-Sameer

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Random Deadline Exceeded exceptions

2010-01-08 Thread ekampf
Happens to me too...
Even worse is that it's thrown during django's loading... doesn't even
reach my code...



On Jan 8, 8:32 am, Arun Shanker Prasad 
wrote:
> Hi,
>
> Starting yesterday, I am getting random Deadline Exceeded exceptions
> in my application. This creeps at random intervals and I was not able
> to trace a single cause for this. The operations that took very small
> time to complete until a couple of days ago seems to be exceeding the
> deadline..
>
> Please any help would be greatly appreciated.
>
> Thanks & Regards,
> Arun Shanker Prasad.
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] torrent-server : store and serve really big files using BitTorrent

2010-01-08 Thread Gavin Andresen
I wanted to learn more about App Engine and the BitTorrent protocols,
and I figured the best way to learn is by doing.  So I've created
'torrent-server'; it lets you:

Upload arbitrarily large files into the App Engine datastore (using a
command-line python client and the App Engine remote_api, splitting
them up into pieces smaller than the maximum datastore BLOB size).

Download them using a BitTorrent client that supports the BitTorrent
"webseed" protocols (you can also download directly via HTTP if the
file is smaller than the 10MB App Engine response limit).  Downloading
large, popular files this way will save you bandwidth costs, because
the BitTorrent clients will try to get the file from each other first,
and only use your server if they can't find other clients that have
(or are downloading) pieces of the file.

I also incorporated Allen Porter's "open-tracker" code, so torrent-
server acts as a self-contained BitTorrent serving and tracking
solution.

Code is available (via svn checkout) at:  
http://code.google.com/p/torrent-server/
You can see it running at:  http://torrent-server.appspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: delete database

2010-01-08 Thread Andrew Barilla
Run "dev_appserver.py --help" and under the details for --
datastore_path and --history_path it will show you the default
location.  The files should be in your temp directory.


On Jan 7, 1:20 pm, siliconeagle  wrote:
> how do i delete the database on the developemnt server?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Using MySQL

2010-01-08 Thread Patrick Twohig
Whoever was asking about HIPPA compliance, that may be a way to stay in
compliance.  If you put your actual sensitive records in an encrypted
database on your own servers it'd probably be okay.  I seem to recall when I
worked for a medical company, that transmission and storage of patient names
needed be encrypted with 128 bit (or stronger) encryption.
-- 

You received this message because you are subscribed to the Google Groups "Google App Engine" group.

To post to this group, send email to google-appeng...@googlegroups.com.

To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Optimum keys-only request size

2010-01-08 Thread Derrick
Does anyone have data on how API time spent varies on a given query as
you change the number of keys that you request for a "keys only"
query?   Is asking for 50 keys approximately the same cost as 1 or 200
or 500?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread RyanD
Hmm, nevermind, I see the issue in the issue tracker related to an
"Index Management API".  I guess I'm not the only one. Starring it.

On Jan 8, 1:46 pm, RyanD  wrote:
> One followup question to the case described above:
>
> If I want entity types that are application controlled, and
> dynamically created through the low level API (as described above),
> then there is no way to create indexes unless there is also some kind
> of low level API for index creation.  As it stands the index files
> appear to be a static part of the uploaded application files, which
> wouldn't work with dynamically create entity types.  Am I
> understanding this index "limitation" correctly?  If so, are there any
> long term plans for a low level index API?
>
> Ryan
>
> On Nov 19 2009, 11:53 am, "Ikai L (Google)"  wrote:
>
>
>
> > Ryan,
>
> > The answer to both of your questions is "no" with a gotcha. Unlike an RDBMS
> > in which tables can enforce some degree of the concept of "Type", BigTable
> > has no concept of type or tables. Entities are mapped by an Entity index,
> > which in turn is also stored in BigTable. Searchable/filterable fields on an
> > entity also generate indexes, and composite indexes are also generated
> > depending on what queries are being done. There is no limit to the amount of
> > entities you can store, but you will only be able to retrieve 1000 with any
> > given query until we release cursor support in an upcoming release.
>
> > We'll be publishing an article that describes how the data store works
> > underneath the hood soon. I'll post it when it goes live.
>
> > On Sat, Nov 14, 2009 at 5:55 PM, RyanD  wrote:
> > > A couple of quota questions:
>
> > > 1)  Mainly:  I'm looking to develop an application that has an
> > > *unbounded* number of entity types / kinds (by using the low level
> > > Java API). Is this possible, or is there some limit to the number of
> > > entity types / kinds that an application may have?
>
> > > 2)  Any limit on the number of entries for a single entity type /
> > > kind?
>
> > > Thanks,
>
> > > Ryan
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to google-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com > >  e...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread RyanD
One followup question to the case described above:

If I want entity types that are application controlled, and
dynamically created through the low level API (as described above),
then there is no way to create indexes unless there is also some kind
of low level API for index creation.  As it stands the index files
appear to be a static part of the uploaded application files, which
wouldn't work with dynamically create entity types.  Am I
understanding this index "limitation" correctly?  If so, are there any
long term plans for a low level index API?

Ryan

On Nov 19 2009, 11:53 am, "Ikai L (Google)"  wrote:
> Ryan,
>
> The answer to both of your questions is "no" with a gotcha. Unlike an RDBMS
> in which tables can enforce some degree of the concept of "Type", BigTable
> has no concept of type or tables. Entities are mapped by an Entity index,
> which in turn is also stored in BigTable. Searchable/filterable fields on an
> entity also generate indexes, and composite indexes are also generated
> depending on what queries are being done. There is no limit to the amount of
> entities you can store, but you will only be able to retrieve 1000 with any
> given query until we release cursor support in an upcoming release.
>
> We'll be publishing an article that describes how the data store works
> underneath the hood soon. I'll post it when it goes live.
>
>
>
>
>
> On Sat, Nov 14, 2009 at 5:55 PM, RyanD  wrote:
> > A couple of quota questions:
>
> > 1)  Mainly:  I'm looking to develop an application that has an
> > *unbounded* number of entity types / kinds (by using the low level
> > Java API). Is this possible, or is there some limit to the number of
> > entity types / kinds that an application may have?
>
> > 2)  Any limit on the number of entries for a single entity type /
> > kind?
>
> > Thanks,
>
> > Ryan
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: GAE + Eclipse + Maven

2010-01-08 Thread Grant
There are open bugs relating to this...

Star these issues to add support to them.

http://code.google.com/p/googleappengine/issues/detail?id=1515

and

http://code.google.com/p/googleappengine/issues/detail?id=1296

Grant
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Using MySQL

2010-01-08 Thread Niklasro.appspot.com
2010/1/7 raees :
> Can I use MySql on google app engine ? if not what database support is
> available
>
> Thanks
> Raees
approcket is an (inofficial) active workaround enabling MySQL
replication I use if you like svn version
http://approcket.googlecode.com/svn/trunk/ approcket-read-only
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Very high datastore latency at the moment

2010-01-08 Thread herbie
There seems to abnormally high datastore latency (writing) at the
moment.   Are people at Google aware of this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] GWT RPC + JDO - persisted object loses its id when sending from server back to client.

2010-01-08 Thread Kah0ona
I have a problem with the following things:

@PersistenceCapable(detachable = "false", identityType =
IdentityType.APPLICATION)
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Person {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName = "datanucleus", key = "gae.encoded-pk",
value
= "true")
protected String id; //encoded string

}

public class Employee extends Person{
... // some persistent attributes

}

public class EmployeeDaoImpl extends RemoteServiceServlet implements
 EmployeeDao {

  /**
* Persists one employee obj
   */
public Employee create(Employee entry) {
PersistenceManager pm = PMF.get().getPersistenceManager
();
try {
pm.makePersistent(entry);
}
finally {
pm.close();
}
return entry;
}

}

//THE CALL
public Request daoCreate(Employee entry) {
AsyncCallback callback = new
AsyncCallback() {
public void onFailure(Throwable caught) {

}

public void onSuccess(Employee result) {
Window.alert(result.getId()); //
<-- RETURNS NULL???
...
}
};

return dao.create(entry, callback);
}

Okay, when debugging this, the debugger tells me that , at the 'return
entry' line, it has a generated id. So I know that on the server it
gets an ID. but when it comes back the id is null again!

I used detached=false, because of this serialization issue, but that's
not a problem. I also tried copying the object I return attribute-by-
attribute, but it also ended up  with an id being reset as soon as the
onSucces() is called (so it doesn't even fail).

Any ideas?

Oh lastly, i got another object, which is not part of a inheritance,
eg.
public class Hobby {
 String id;

}

Storing this in a similar function works fine!

I've run into a wall here, is it a GWT bug? Or am I missing something?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: GAE + Eclipse + Maven

2010-01-08 Thread KasperDK
Hi,

I can see no one has answered Tim.

I also uses Maven, and would like information about this. I've tried
with the gae maven plugin, but I find this solution far from optimal.

Is there plans to extend the eclipse plugin with maven support ? What
is the current best practice ?

:-)

On Dec 7 2009, 9:05 am, Jim Alateras  wrote:
> I was just wondering whether someone could point me to 'current
> practices' for using GAE with eclipse andmaven. I would like to
> compile and deploy from both eclipse and the command line.
>
> Does themaven-gae-plugin support this type of integration?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Using MySQL

2010-01-08 Thread David
If you are committed to both an RDBS and to Appengine, take a look at
Rdbhost.  We host Postgresql relational databases, accessible via a
web-service (ie: the GAE urlfetch module).  We provide a Python DB API
module that works under GAE.

https://www.rdbhost.com

There is a very simple GAE example in the downloads area.

http://www.rdbhost.com/downloads.html#examples


On Thu, Jan 7, 2010 at 3:03 PM, raees  wrote:
> Can I use MySql on google app engine ? if not what database support is
> available
>
> Thanks
> Raees
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>
>



-- 
dkee...@travelbyroad.net
Rdbhost -> SQL databases as a webservice [www.rdbhost.com]
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Anyone operate a heavy-traffic large-scale web service on app engine?

2010-01-08 Thread Michael
In my experience, i can easily host the same amount of traffic
(and more) from one dedicated server for $100/month (nowadays
you can have quadcore with 8GB ram, 1Tb disk and 4000Gb traffic
for that money).

Of course, i wouldn't have the same amount of reliability.

I started my app from scratch to test the GAE and to learn python.

On Jan 6, 5:01 pm, DAndrea <321go.nullpoin...@gmail.com> wrote:
> Hi Michael,
> it seems to me the cost is low with a so big traffic
> and you don't have to take care of database, operating system,
> hardware ...
>
> Did you move your site to AppEngine from another hosting?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Using MySQL

2010-01-08 Thread raees
Thanks folks

On Jan 7, 10:55 pm, Devraj Mukherjee  wrote:
> On Fri, Jan 8, 2010 at 9:03 AM, raees  wrote:
> > Can I use MySql on google app engine ? if not what database support is
> > available
>
> If your app absolutely centric to MySQL then you might want to
> consider Amazon EC2.
>
> --
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Anyone operate a heavy-traffic large-scale web service on app engine?

2010-01-08 Thread Michael
For me it's CPU. But i use GAE only for back end for the flash
app, so i don't have large HTML traffic.

Payment for storage is minimal, because i started my app only at
September.

On Jan 6, 10:31 pm, lucrussell  wrote:
> For those people who mentioned the high cost of GAE, are the main
> costs in CPU, bandwidth or stored data (just out of curiosity)?
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Key sorting.

2010-01-08 Thread Timofey Danshin
Hi.
I am writing a cms, which has sections and articles. Both of them are
represented by the same object of the type Node of my own composition. Among
other fields, a node has a Set, representing it's children.
Consequently, root nodes (i.e. sections have simple keys (say, Node(1))),
and articles have composite keys (say, Node(1)/Node(2)).

And for the first page of my cms i would like to have a number of articles
disregard of the sections they are in. In order to do that i need to sort
the articles by their keys. However,  in that sorted list they appear in the
wrong chronological order because of the "first part" of their keys. I.e.,
apparently Node(1)/Node(7) will come earlier than Node(2)/Node(3).

Is there a way to sort the entities in a query by the last part of their
keys?

-- 
Best Regards,
Timofey Danshin.
-- 

You received this message because you are subscribed to the Google Groups "Google App Engine" group.

To post to this group, send email to google-appeng...@googlegroups.com.

To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Django didn't fully load. Help!

2010-01-08 Thread aw
Is there any way to avoid a bad initialization?  I seem to be having a
lot of them.

Thanks
Alvin

On Jan 7, 12:41 pm, Jason C  wrote:
> Are you using Django 1.1? I've heard that it is better about being
> "clean" after a bad initialization - e.g., when a
> DeadlineExceededError pulls the rug out from under.
>
> j
>
> On Jan 7, 12:00 pm, Nefarious  wrote:
>
> > So, I ran into a problem yesterday wherein it appears Django didn't
> > fully load.  I am getting exceptions like this:
>
> > Parent module 'django.contrib.localflavor.us' not loaded.
>
> > Anyone know what causes this exception?  I am using app engine patch.
>
> > The most disturbing part is, now pages which may be using that
> > instance to render are all failing with various Django errors.  The
> > million dollar question is, how do I clear this instance?  If instance
> > (cpu or whatever it is called) starts up poorly, how do I get rid of
> > it?  I have a fairly low traffic site but it appears to have stayed
> > around at least 24 hours.
>
> > Thanks,
>
> > Mike
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Performance Issues

2010-01-08 Thread Wesley C (Google)
can you send us your application ID? we can help take a look at it.

also, how was performance yesterday,... and today? just curious if there
were any differences, or whether something else changed, like usage,
latency, datastore access, etc.

thx!
-wesley


On Mon, Jan 4, 2010 at 8:06 PM, Devel63  wrote:
> I've been very concerned about cold-start performance, since I have a
> low traffic site (www.lifehints.com).
>
> Over the past few days, though, performance has been great!!  My app
> seems to often already be in memory, and even when it's apparently
> not, it only takes 2-3 seconds to swap in and respond.
>
> This afternoon, however, things deteriorated badly.  The app is
> swapping out quickly, and startup times are taking 10+ seconds, and
> unbelievably, I just monitored a startup that took almost 30
> seconds.
>
> GAE system status shows everything normal.
>
> How can I get back to the great performance I've been enjoying (even
> as late as this morning, when presumably everyone was back at work and
> traffic levels were normal)?
>
> Can someone explain these extreme fluctuations?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>



-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+...@google.com
developer relations :: google app engine
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




Re: [google-appengine] Application specific configuration vars

2010-01-08 Thread Wesley C (Google)
devraj,

since it's your application, it's probably best that you maintain your
own configuration files because those are specific application
settings that you're adjusting, not App Engine settings. plus Python's
syntax is so straight forward that i've seen many companies simply use
a separate .py consisting of one or more dictionaries which works just
fine as a config file.

if you want a more "traditional" style configuration file format, the
Python has the ConfigParser module:
http://docs.python.org/library/configparser.html

finally, i can't believe i'm saying this but, you don't want to be too
tied down or become dependent on App Engine. perhaps at some point,
your app will be so wildly successful that you need to run your app on
a different platform. if you keep it as pure Python, you can take it
anywhere you have Python execution ability, not just App Engine.

best regards,
-wesley


On Mon, Jan 4, 2010 at 6:30 PM, Devraj Mukherjee  wrote:
> Hi all,
>
> My AppEngine application is written in Python. As the application code
> base becomes larger are experiencing the need to use configuration
> variables for our own applications. Example are we running in Debug
> mode or not, admin email addresses (used to send internal
> notifications) etc.
>
> Currently we are maintaining this in a common Python file as varaibles.
>
> Does any one else agree if the AppEngine environment could provide
> this as a feature, so its not part of the application but rather a
> part of the environment?
>
> Would appreciate comments.


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+...@google.com
developer relations :: google app engine
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.




[google-appengine] Re: Can't Parse Incoming Email

2010-01-08 Thread Wesley Chun (Google)
> in other words, "text" should probably be called 'text_bodies'. then
> you can do something like:
>
> logging.info("%s: %s" % ('Message bodies', ''.join('msg %d: %s; ' % x for x 
> in enumerate(text_bodies)))


in case it wasn't clear or seems to be obfuscated, here's a plain text
example of what the above does:

>>> a = ['foo', 'bar', 'google', 'app', 'engine']
>>> a
['foo', 'bar', 'google', 'app', 'engine']
>>>
>>> ''.join('msg %d: %s; ' % x for x in enumerate(a))
'msg 0: foo; msg 1: bar; msg 2: google; msg 3: app; msg 4: engine; '

here's a more Python-newbie-friendlier alternative:

>>> ':'.join(a)
'foo:bar:google:app:engine'

the point is that it is not a string, and you should use the str.join
() method to merge them together into a single string so that you can
successfully make the call to log it.

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: wesc+...@google.com
developer relations :: google app engine
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.