Comments (3)
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.
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.
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)
- DetachedCriteria disjunction HOT 1
- gradlew idea fails for grails-data-mapping HOT 1
- redis-gorm: Failed to convert from type java.lang.String to type java.lang.Long HOT 1
- [MongoDB] mongoTemplate created for every domain class
- Log4j seems to be using multiple versions
- simpledb plugin creates HiLo domain even if not used.
- simpledb: how to set region endpoint ? HOT 4
- sqlProjection not working in criteria query
- Wrong port number in the manual
- Developer Guide Page is Down HOT 2
- Improve Neo4j GraphDB usability for Groovy/Grails
- [GORM-Neo4j] ToOne's with same class spawn loops
- [GORM-Neo4j]: No Transactional context for services exist.
- Neo4j: Date properties cant' have null values
- Dependency resolution during SimpleDB plugin install fails HOT 1
- transient property not validating HOT 2
- How to use the withCriteria results in a new withCriteria query in Grails? HOT 3
- CouchDB Support
- [CORE] concurrentlinkedhashmap-lru:1.2_jdk5 dependency : conflicts with Neo4j 1.8.1+ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-data-mapping.