In Google App Engine erstellt der Datenspeicher jedes Mal einen neuen Eintrag, wenn Sie ihm einen Wert zuweisen. Ich versuche eine einfache Variable x zu speichern. Wenn eine Funktion aufgerufen wird, wird 1 zu x hinzugefügt und es wird erneut gespeichert (und einige andere einfache Sachen, die ich den Code bereits geschrieben habe). Wie würde ich das erreichen, ist Python?Google App Engine Python Einfache Frage
0
A
Antwort
2
Klingt, als ob Sie versuchen, einen Zähler zu halten. This tutorial ist gut für die Verwendung "sharded counters", das heißt, ein Zähler, der nicht nur wie erwartet funktioniert, sondern auch viel effizienter zu aktualisieren ist, da Sie nicht so viel Konkurrenz für das Counter-Objekt haben.
Verwandte Themen
- 1. urllib2, Google App Engine und Unicode Frage
- 2. Python Google App Engine flexible
- 3. Einfache Facebook Connect in Google App Engine (Python)
- 4. Einfache Suche nach Google App Engine erstellen
- 5. Google App Engine Python Hinzufügen
- 6. Google App Engine | Python | APP.YAML
- 7. Python 2.5 Google App Engine
- 8. Google App Engine Python-Datenspeicher
- 9. Python Google App Engine Importfehler
- 10. Umleiten Benutzer in Python + Google App Engine
- 11. Google App Engine-Kompatibilitätsschicht
- 12. Google App Engine/Python - Ändern der Protokollierungsformatierung
- 13. Google App Engine-Umleitungsproblem
- 14. Google App-Engine Python Log-Level Rauschunterdrückung
- 15. Deployment-Fehler in Python-Google App Engine
- 16. Google App Engine Endpunkte API Python
- 17. Google App Engine (Python) - Import schlägt fehl
- 18. Cookies mit Python und Google App Engine
- 19. Python-Cloud-Hosting außer Google App Engine?
- 20. REST-API in Google App Engine + Python?
- 21. Python Funktion Dekoratoren in Google App Engine
- 22. Google App Engine Python 2.7 Tutorial
- 23. Google App-Engine Python-Download-Datei
- 24. User-Agent in Google App Engine Python
- 25. Google App Engine Python-Unit-Tests
- 26. Python-Anwendungsfehler bei Google App Engine
- 27. Einfache Erklärung von Google App Engine NDB Datenspeicher
- 28. Wie implementieren Sie einfache Sitzungen für Google App Engine?
- 29. Google App Engine + Validierung
- 30. Jinja2 in Google App Engine
Das ist genau das, was ich brauchte. Danke!!!! –