Comments (3)
Index may be used automatically but it's also possible to force it by calling with_index
method (documentation)
For instance in your case it may look like:
Message.where('text_html.contains': "some text").with_index(:message_index)
But in this particular case using the index will not help as far as there is no any equality condition for the partition key attribute in the query. So such code will lead to a full table scan. It's how DynamoDB works.
You can find more details about the Query operation here.
from dynamoid.
Related Issues (20)
- Dym
- Support segment/total_segments for scans HOT 1
- `key:` with number type -> type mismatch HOT 7
- Any chance to cut a more recent release? HOT 4
- Calling first modifies the original variable HOT 4
- How to use condition expressions in a query? HOT 6
- Coveralls is dead and is holding back simplecov version
- Bad Badge Anchor HOT 1
- Update GSI the existing table HOT 3
- filter expression with or? HOT 2
- Conditional updates are incorrect in README HOT 2
- undefined method `symbolize_keys' when saving dynamo model HOT 2
- Field adapters no longer work (v3.9.0) HOT 9
- Updating an attribute that is a key of a GSI to `nil` (3.9.0) HOT 3
- Conditional update array element HOT 1
- Batching with more than 1000 doesn't have any effect? HOT 5
- Case where updating array/map fields does not work HOT 3
- Idea: "ActiveDocument" HOT 3
- has_one doesn't allow custom foreign_key HOT 1
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 dynamoid.