Comments (1)
Yes, compound indexes are supported automatically, for primary, unique, and ordered indexes. The indexes are detected when the table is first used.
When used with find, use a key object that includes all of the fields in the primary or unique index.
When used with query, specify conditions on the fields and if an index can be used, it will be. Generally, to be useful, you have to specify one or more fields that are at the beginning of the index.
You can look at test suite test/multipartkeys for examples of use.
from mysql-js.
Related Issues (20)
- Parameterized test cases HOT 1
- jones-ndb: V8 API deprecation warnings with node 6.3.1 HOT 2
- Trouble with Projection API HOT 6
- Segmentation Fault with Projection API HOT 25
- jones-ndb: assertion fails on getNoOfBlobColumns HOT 2
- jones-ndb should support partition key distinct from primary key
- Cannot build jones-ndb with node 7.x HOT 5
- Deprecation warnings building jones-ndb with node 6.9.1 HOT 2
- openSession should work without mappings HOT 1
- createTable should work without a constructor HOT 1
- Create UUID columns from meta.char(XX).generated()
- Session should support oneShot operation HOT 4
- Support table mapping for table name function variants HOT 1
- Undefined symbol __ZN15NdbQueryBuilder7prepareEv
- setLockMode is not implemented
- Split jones-ndb into two modules
- jones-ndb 7.6 cannot connect to NDB 8.x HOT 1
- jones-ndb build failure with current mysql-trunk
- jones-ndb build failure HOT 2
- How can I retrive UUID from MySQL in my Flutter app?
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 mysql-js.