Title: gcloud.datastore should allow explicit specification of whether the field is indexed · Issue #83 · googleapis/google-cloud-python · GitHub
Open Graph Title: gcloud.datastore should allow explicit specification of whether the field is indexed · Issue #83 · googleapis/google-cloud-python
X Title: gcloud.datastore should allow explicit specification of whether the field is indexed · Issue #83 · googleapis/google-cloud-python
Description: Summary Right now, everything is indexed by default (based on the Value protobuf's indexed [default = true] field). See https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta2-rev1-2.1.0/proto/datastore_v1.proto#L129 T...
Open Graph Description: Summary Right now, everything is indexed by default (based on the Value protobuf's indexed [default = true] field). See https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta2-re...
X Description: Summary Right now, everything is indexed by default (based on the Value protobuf's indexed [default = true] field). See https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/83
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gcloud.datastore should allow explicit specification of whether the field is indexed","articleBody":"## Summary\n\nRight now, everything is indexed by default (based on the `Value` protobuf's `indexed [default = true]` field). See https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta2-rev1-2.1.0/proto/datastore_v1.proto#L129\n\nThis will get crazy expensive. We need to allow people to specify whether a field should be indexed. We should probably also default this to `false`. But that's a bigger question.\n\n---\n## To do\n- [ ] Decide whether to allow explicit indexing or unindexing\n- [ ] Figure out what the syntax will be for specifying indexing\n- [ ] Submit a patch for the feature\n## Options for specifying indexing\n### List of indexed fields\n\nUnless a field is explicitly in the list of indexed fields, the `indexed` property will be set to `False`.\n\n``` python\nentity = ...\nentity.indexed_fields = ['field1', 'field2']\n```\n### List of unindexed fields\n\nIf a field is in this list, it's `indexed` property will be set to `False`. Otherwise it will be left unset (and therefore default to `True` per the protobuf definition.\n\n``` python\nentity = ...\nentity.unindexed_fields = ['field1', 'field2']\n```\n## CC\n\n@proppy @aliafshar \n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2014-04-21T15:21:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/83/google-cloud-python/issues/83"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f47eff74-9a63-0bea-4264-8903479ee496 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8394:EF59:5CE2:BCDE0:6A4D49D1 |
| html-safe-nonce | 7c1c832aa0e74da2b3cbb7d78ef87cb2a368668d44fccf1a0711102fd21ac74b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mzk0OkVGNTk6NUNFMjpCQ0RFMDo2QTRENDlEMSIsInZpc2l0b3JfaWQiOiI1NzIwOTQzMTYwNzA5Njk1OTUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 571032a4c230452924d461936c89b6815cad6cefb1ea6708d1b5de94eaa070e6 |
| hovercard-subject-tag | issue:31901302 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/83/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b41be0749c5e1376250f48aacb2a6635a5d836203ee008e1a725e29b40b9538/googleapis/google-cloud-python/issues/83 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b41be0749c5e1376250f48aacb2a6635a5d836203ee008e1a725e29b40b9538/googleapis/google-cloud-python/issues/83 |
| og:image:alt | Summary Right now, everything is indexed by default (based on the Value protobuf's indexed [default = true] field). See https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta2-re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgeewax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width