Sorry for the late reply.
I ran a few queries and got nothing back on those fields so either I'm
using the wrong queries or (probably) the datastore is handling the query
correctly, so that's a good thing.
Query:
var channels []models.Channel
> _, err =
> gn.GetAll(datastore.NewQuery(gn.Kind(&models.Channel{})).Filter("PersonalInformation.FirstName
>
> =", searchQuery), &channels)
> channels == null
Normally I don't look at this screen but because of the index issue I
noticed the size of the indexes seemed a bit high:
Highlight struct {
Seconds int64 `datastore:"-" json:"seconds,omitempty"
goon:"id"`
Stream *datastore.Key `datastore:"-" json:"-" goon:"parent"`
HighlightScore int `datastore:",noindex"
json:"highlightScore,omitempty"`
ScorePercentile int `datastore:",noindex"
json:"scorePercentile,omitempty"`
Processed []string `datastore:",noindex"
json:"processed,omitempty"`
Links []string `datastore:",noindex" json:"links,omitempty"`
WordStats []WordStat `datastore:",noindex"
json:"wordStats,omitempty"`
}
I have no indexed fields as you can see yet the overview reports out of 3
mb indexed fields out of 13mb data, that seems a little high?
If that number seems to high it's probably linked to the same problem as
the datastore viewer is showing.
3mb indexes of course isn't that much but it does add up when you have
larger datasets and I assume users will be billed for that.
On Wednesday, December 30, 2015 at 1:51:55 AM UTC+1, Nick (Cloud Platform
Support) wrote:
>
> It definitely seems, from a quick run-through of the doc and your schema,
> that the inner entities' flattened fields should be "noindex" here. Are you
> able to run queries which would hit the index, and do you see results?
>
> On Sunday, December 27, 2015 at 10:15:02 AM UTC-5, Rohan Chandiramani
> wrote:
>>
>> I have the following struct in my Go code:
>>
>> Channel struct {
>> Name string
>> `datastore:"-" json:"name,omitempty" goon:"id"`
>> UserId int
>> `datastore:",noindex" json:"userid,omitempty"`
>> Subscription Subscription
>> `datastore:",noindex" json:"subscription,omitempty"`
>> PersonalInformation []PersonalInformation `datastore:",noindex"
>> json:"personalInformation,omitempty"`
>> }
>>
>> PersonalInformation struct {
>> FirstName string `datastore:",noindex" json:"firstName,omitempty"`
>> LastName string `datastore:",noindex" json:"lastName,omitempty"`
>> StreetAdress string `datastore:",noindex" json:"streetAdress,omitempty"`
>> Province string `datastore:",noindex" json:"province,omitempty"`
>> PostalCode string `datastore:",noindex" json:"postalCode,omitempty"`
>> CountryCode string `datastore:",noindex" json:"countryCode,omitempty"`
>> }
>>
>>
>> <https://lh3.googleusercontent.com/-oNntmToU2Mg/Vn_-aiXlGDI/AAAAAAAADvI/QbT8Uvmmq0M/s1600/array_nested_indexed.png>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> When I look at the new console, all values from PersonalInformation are
>> marked indexed and greyed out.
>> It seems to only happen with Arrays, because the nested type Subscription
>> isn't an array and is correctly marked as non indexed.
>>
>> https://cloud.google.com/appengine/docs/go/datastore/reference?hl=en
>> If an outer struct is tagged "noindex" then all of its implicit flattened
>> fields are effectively "noindex".
>>
>> So is the console incorrectly marking these nested array values as
>> indexed.
>> or
>> Is the datastore itself marking these as indexed correctly and I can't
>> find this specific behaviour in the documentation?
>>
>> -Not related to this problem-
>> Thank you for adding the 'Refresh' button!
>> Thank you for showing what entities derive from if they have an ancestor!
>>
>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/cc7ec91e-2c01-48cb-a049-c26840360fe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.