[google-appengine] Re: Google Datastore can't allow to add entities having value more than 150 characters .

2013-04-22 Thread Chirag Parmar
Thanks for the reply  .
 
I am adding entity to datastore . Each entity's key and value are  
java.lang.String . But when length of value exceed 150 characters it gives 
me 500 internal server error.  
But thanks Vinny P for suggestion ,wrapping using Text object works for me. 

Please have a look at my concept, I have created a prototype of it. 


Link to prototype : 
http://cloud.remembermyinformation.appspot.com/

Best Regards,
Chirag Parmar
Founder,Chroncleretention
  

On Tuesday, 26 March 2013 20:46:43 UTC+5:30, Vinny P wrote:
>
> Hi Chirag,
>
> Do you mean a String as a property of the Entity or as the key name? 
>
> If you mean String as a property, then I'm not sure where you're getting 
> the 150 char limit. The datastore limits string properties to 500 chars 
> (see 
> https://developers.google.com/appengine/docs/java/datastore/entities#Properties_and_Value_Types
>  ). 
> There should be more space than just 150 characters. What you can do is to 
> try wrapping the String in a Text object (text objects are capped at 1 MB 
> in size, although they are not indexed). See the documentation here: 
> https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text
>
> If you mean the key name, you don't need a 150 character long key name. 
> Instead, try using a MD5 or SHA1 hash on your long key names, then using 
> the hash as the key name.
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> @GOV on AppDotNet: https://alpha.app.net/gov
>
>
> On Sunday, March 24, 2013 6:40:12 AM UTC-5, Chirag Parmar wrote:
>>
>> Hi - I have created a prototype of my project using GoogleDatastore as 
>> db. Which is not allowing the string having length more than 150charaters 
>> to be entered into its entity.
>>
>> Can anybody know how to deal with this issue ? 
>>
>> Link to prototype : http://rmi.remembermyinformation.appspot.com/
>>
>> Best Regards,
>> Chirag Parmar
>> Founder,Chroncleretention
>>
>

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




[google-appengine] Re: Google Datastore can't allow to add entities having value more than 150 characters .

2013-04-22 Thread Chirag Parmar
Thanks for the reply  .
 
I am adding entity to datastore . Each entity's key and value are  
java.lang.String . But when length of value exceed 150 characters it gives 
me 500 internal server error.  
But thanks Vinny P for suggestion ,wrapping using Text object works for me. 

Please have a look at my concept, I have created a prototype of it. 


Link to prototype : 
http://cloud.remembermyinformation.appspot.com/

Best Regards,
Chirag Parmar
Founder,Chroncleretention
  
  

On Tuesday, 26 March 2013 20:46:43 UTC+5:30, Vinny P wrote:
>
> Hi Chirag,
>
> Do you mean a String as a property of the Entity or as the key name? 
>
> If you mean String as a property, then I'm not sure where you're getting 
> the 150 char limit. The datastore limits string properties to 500 chars 
> (see 
> https://developers.google.com/appengine/docs/java/datastore/entities#Properties_and_Value_Types
>  ). 
> There should be more space than just 150 characters. What you can do is to 
> try wrapping the String in a Text object (text objects are capped at 1 MB 
> in size, although they are not indexed). See the documentation here: 
> https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text
>
> If you mean the key name, you don't need a 150 character long key name. 
> Instead, try using a MD5 or SHA1 hash on your long key names, then using 
> the hash as the key name.
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> @GOV on AppDotNet: https://alpha.app.net/gov
>
>
> On Sunday, March 24, 2013 6:40:12 AM UTC-5, Chirag Parmar wrote:
>>
>> Hi - I have created a prototype of my project using GoogleDatastore as 
>> db. Which is not allowing the string having length more than 150charaters 
>> to be entered into its entity.
>>
>> Can anybody know how to deal with this issue ? 
>>
>> Link to prototype : http://rmi.remembermyinformation.appspot.com/
>>
>> Best Regards,
>> Chirag Parmar
>> Founder,Chroncleretention
>>
>

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




[google-appengine] Re: Google Datastore can't allow to add entities having value more than 150 characters .

2013-03-26 Thread Vinny P
Hi Chirag,

Do you mean a String as a property of the Entity or as the key name? 

If you mean String as a property, then I'm not sure where you're getting 
the 150 char limit. The datastore limits string properties to 500 chars 
(see 
https://developers.google.com/appengine/docs/java/datastore/entities#Properties_and_Value_Types
 ). 
There should be more space than just 150 characters. What you can do is to 
try wrapping the String in a Text object (text objects are capped at 1 MB 
in size, although they are not indexed). See the documentation here: 
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text

If you mean the key name, you don't need a 150 character long key name. 
Instead, try using a MD5 or SHA1 hash on your long key names, then using 
the hash as the key name.

-
-Vinny P
Technology & Media Advisor
Chicago, IL

@GOV on AppDotNet: https://alpha.app.net/gov


On Sunday, March 24, 2013 6:40:12 AM UTC-5, Chirag Parmar wrote:
>
> Hi - I have created a prototype of my project using GoogleDatastore as db. 
> Which is not allowing the string having length more than 150charaters to be 
> entered into its entity.
>
> Can anybody know how to deal with this issue ? 
>
> Link to prototype : http://rmi.remembermyinformation.appspot.com/
>
> Best Regards,
> Chirag Parmar
> Founder,Chroncleretention
>

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