google-app-engine

Find Currently connected users in google app engine

Is there a way to get currently connected users in GAE? OR Can we implment this feature in GAE? I want to display currently connected users to my app in my admin consol. ...

Play! + Siena + GAE + JUnit

I am trying to get some basic unit tests up and running on the Play! framework using the Siena persistence library with GAE as the intended deployment target. I have the project configured properly and can deploy the app to GAE. I created a basic domain object: public class User extends Model { @Id(Generator.AUTO_INCREMENT) pu...

Lots of little objects in data store adds a lot of meta information space usage?

Hi, I've been getting more into app engine, and am a little concerned about space used per object in the datastore (I'm using java). It looks like for each record, the names of the object field are encoded as part of the object. Therefore, if I have lots of tiny records, the additional space used for encoding field names could grow to b...

Receive Email address count limit in app engine

Hi, My mail is regarding the option for receiving email to any address which looks like - [email protected] documented here: http://code.google.com/appengine/docs/python/mail/receivingmail.html My questions are: Is there any restriction on the number of email addresses which can be created using the above format and used insi...

Improve fetch time and this function's performance

I am searching the Final model (defined below) with a query which filters on its name property. This query is taking about 2200ms to execute on the development server. How can I speed it up? Here is an AppStats screenshot. I was filtering on the created field too, but this was taking in excess of 10000ms so I've removed that part of ...

GWT, access RichTextArea by non-GWT (or "regular") javascript

Hi. I am writing a pretty simple CMS on GAE, and I want my users to be able to upload images. I have written the part that does the actual uploading and showing the images, and here's what I'd like to do: Show the usual form for new posts (with a widget that contains a rich text area and a format bar for it) and the list of images the...

Should I denormalize properties to reduce the number of indexes required by App Engine?

One of my queries can take a lot of different filters and sort orders depending on user input. This generates a huge index.yaml file of 50+ indexes. I'm thinking of denormalizing many of my boolean and multi-choice (string) properties into a single string list property. This way, I will reduce the number of query combinations because mo...

Google App Engine index costs

From what I've understood, App Engine indexes are costly both in terms of increased overall storage size and by slowing down your writes. But do indexes only cost when they're actually used in queries and are explicitly defined in index.yaml? Or do properties such as StringProperty cost more than their non-indexed counterpart (e.g. Text...

App Engine's filter vs. gql methods

I have a user in my system who has created an entity which I'd like to retrieve. I'm attempting to do this using a filter because it's supposed to be faster than a call to the gql method. However, the filter returns no results and gql works. randy_res = Vote.all().filter('created_by=', randy).fetch(limit=10) randy_res = Vote.gql('WHERE...

Noob Question: Python + Twitter + App Engine - Oauth

I'm sorry but I'm having some trouble implementing Oauth within my app engine python project. I've been working from http://github.com/tav/tweetapp, but I don't think I have a strong enough grasp on this platform to understand how to implement this class within my main.py I'm building the rest of my app in. This maybe a feeble attempt,...

Possible to use an unencoded String key with entity groups?

Hi, Having a problem using a class with an unencoded String key as an entity parent: class Farm { @PriamryKey private String name; } class Cow { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") private String k; @...

On the google app engine, how do I get rid of the 'Only ancestor queries are allowed inside transactions' error?

I am having trouble with one specific query. It needs to run in a transaction, and it does, but whenever the app engine executes my query I get the following error: Only ancestor queries are allowed inside transactions You'll see that my query DOES have an ancestor. So what is the app engine really complaining about? q = db....

Querying URLs on ports other than 80 with urlfetch() on app engine

Is querying for URLs present on ports other than 80 allowed with urlfetch() I would like to get data from a server on a non-standard port - http://example.com:8000/WebService?input=a Ideal example would be web services hosted on non-standard ports. Can i do this somehow with appengine? ...

Facebook Style Wall / Activity log - General design help

I'm building a face-book style activity stream/wall. Using python/app engine. I have build the activity classes based on the current activity standard being used by face-book, yahoo and the likes. i have a Chanel/api system built that will create the various object messages that live on the wall/activity stream. Where i can use some he...

Singletons in Google App Engine can get expired, or does that many that any static variable can get expired? (java)

I read that in Google App Engine there is a chance that a singleton class might die, if the application gets idled for too long (or a new application instance is created), and I have experienced this myself. But does that really mean that Any static variable in any class might get expired in the application? or how can GAE identify that...

How to implement Django like 'contains' filter query with Google App Engine?

Hi All, Is there some way to implement Django like contains or icontains filters with Google App Engine as well? I am using app engine patch. I have used the below query earlier to match the start of a string but now the requirement is to find a string pattern within Datastore. Employee.all().filter('name >=',value).filter('name <',un...

how to get final redirected url

i am using google app engine for fetching the feed url bur few of the urls are 301 redirect i want to get the final url which returns me the result i am usign the universal feed reader for parsing the url is there any way or any function which can give me the final url. ...

google-app-engine simple cron format of multiple task

Lets say I want to schedule task a,b,c,d for cron to run a,b,c,d and wait one hour, before running again. Specific time doesn't matter and each task can vary in time, so what would be the format to have d run when c is done , run c after b is done, run b after a is done etc. This is what I am currently thinking? description: a url: /...

Getting a string out of a Key?

Hi, I'm creating an encoded key like this: public static String generateKey(String username) { return KeyFactory.keyToString( KeyFactory.createKey(User.class.getSimpleName(), username)); } is it possible to decompose the key to get the original username out of it? String encoded = generateKey("bob"); String decoded = Key...

Production server url not there but development server is?

I am running my app on the production server for first time. I have a url with admin logon enabled in the app.yml. The script runs when I browse to its URL when running on the development server. However, after uploading to the production server when I go to the same URL I get the following error: The requested URL /tasks/ was not ...