FetchOptions withLimit() does not reduce query execution time (Google App Engine)

前端 未结 1 1066
醉话见心
醉话见心 2021-01-25 22:38

Problem

Running a datastore query with or without FetchOptions.Builder.withLimit(100) takes the same execution time! Why is that? Isn\'t the limit method inte

相关标签:
1条回答
  • 2021-01-25 23:21

    FWIW, you shouldn't expect meaningful results from datastore performance tests performed locally, using either the development server or the datastore emulator - they're just emulators, they don't have the same performance (or even the 100% equivalent functionality) as the real datastore.

    See for example Datastore fetch VS fetch(keys_only=True) then get_multi (including comments)

    0 讨论(0)
提交回复
热议问题