Skip to content

Simple Query Takes 12 seconds #218

Description

@zero-master

I am not sure where's the problem, is it datastore or this library?

   public List<Campaign3> getLiveCampaignsForAccount(Long accountId) {
        EntityQueryRequest request = datastoreAdapter.getEm().createEntityQueryRequest("SELECT * FROM " + ENTITY_NAME + " WHERE accountId=@1 and live = @2");
        request.addPositionalBinding(accountId);
        request.addPositionalBinding(true);
        QueryResponse<Campaign3> response = datastoreAdapter.getEm().executeEntityQueryRequest(Campaign3.class, request);
        return response.getResults();
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions