Coder Social home page Coder Social logo

Comments (3)

rstepanenko avatar rstepanenko commented on July 3, 2024

Hi,

I think this is exactly what is happening.

There is no sql logging because this is NoSQL and there is no logging library that we use in the grails-data plugins (I suspect in order not to impose any on the end user)

Unfortunately I can't find time to investigate this issue. Can you split your data in two or more collections instead of one?

from grails-data-mapping.

cwhd avatar cwhd commented on July 3, 2024

i ended up getting around the issue by doing a query instead of relying on the relationship between objects. If you can point me to the code i can try to get in a pull request for you.

from grails-data-mapping.

sonnerj avatar sonnerj commented on July 3, 2024

I ran into this issue too..

There is a clever workaround to increase the maximum comparisons per IN predicate ('hasMany' relationships) to 400 described here: http://stackoverflow.com/questions/3420360/amazon-simpledb-query-to-find-post-by-friends

Here is a stacktrace:
Caused by: com.amazonaws.services.simpledb.model.InvalidNumberValueTestsException: Status Code: 400, AWS Service: AmazonSimpleDB, AWS Request ID: ***, AWS Error Code: InvalidNumberValueTests, AWS Error Message: Too many value tests per predicate in the query expression.
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:767) ~[aws-java-sdk-1.6.12.jar:na]
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:414) ~[aws-java-sdk-1.6.12.jar:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:228) ~[aws-java-sdk-1.6.12.jar:na]
at com.amazonaws.services.simpledb.AmazonSimpleDBClient.invoke(AmazonSimpleDBClient.java:925) ~[aws-java-sdk-1.6.12.jar:na]
at com.amazonaws.services.simpledb.AmazonSimpleDBClient.select(AmazonSimpleDBClient.java:291) ~[aws-java-sdk-1.6.12.jar:na]
at org.grails.datastore.mapping.simpledb.util.SimpleDBTemplateImpl.queryInternal(SimpleDBTemplateImpl.java:252) ~[grails-datastore-simpledb-0.5.jar:na]
at org.grails.datastore.mapping.simpledb.util.SimpleDBTemplateImpl.query(SimpleDBTemplateImpl.java:246) ~[grails-datastore-simpledb-0.5.jar:na]
at org.grails.datastore.mapping.simpledb.query.SimpleDBQuery.executeQuery(SimpleDBQuery.java:210) ~[grails-datastore-simpledb-0.5.jar:na]
at org.grails.datastore.mapping.query.Query.list(Query.java:509) ~[grails-datastore-core-1.1.8.RELEASE.jar:na]
at org.grails.datastore.mapping.simpledb.engine.SimpleDBEntityPersister.retrieveAllEntities(SimpleDBEntityPersister.java:115) ~[grails-datastore-simpledb-0.5.jar:na]
at org.grails.datastore.mapping.engine.EntityPersister.retrieveAll(EntityPersister.java:140) ~[grails-datastore-core-1.1.8.RELEASE.jar:na]
at org.grails.datastore.mapping.core.AbstractSession.retrieveAll(AbstractSession.java:670) ~[grails-datastore-core-1.1.8.RELEASE.jar:na]
at org.grails.datastore.mapping.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:213) ~[grails-datastore-core-1.1.8.RELEASE.jar:na]
at org.grails.datastore.mapping.collection.AbstractPersistentCollection.toArray(AbstractPersistentCollection.java:155) ~[grails-datastore-core-1.1.8.RELEASE.jar:na]
at java.util.Collections.sort(Collections.java:216) ~[na:1.7.0_45]

from grails-data-mapping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.