[JTS] Support for indexes
See original GitHub issueI like the spec very much. What I am currently missing is the possibility to add information about indexes. This would be especially important for me, when it comes to unique-indexes for more than one column. I could imagine the following:
"indexes": [{
"fields": ["email"]
},
{
"fields": ["name", "birthday"],
"type": "unique"
}
]
where “type” is optional and might be at least “unique”. Maybe it could be extended to “type” like “bitmap”, “btree”, “partition”, … but well, ok, than we it might be too database-vendor-specific.
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
SpatialIndex (org.locationtech.jts:jts-core 1.19.0 API)
The basic operations supported by classes implementing spatial index algorithms. A spatial index typically provides a primary filter for range rectangle ...
Read more >org.locationtech.jts:jts-core 1.19.0 API - javadoc.io
Contains the Geometry interface hierarchy and supporting classes. org.locationtech.jts.geom.impl ... org.locationtech.jts.index.intervalrtree.
Read more >Spatial queries with polygons require JTS | DSE 5.1 Dev guide
JTS is required to index polygon/multipolygon and perform queries that include polygon shapes. Limiting queries by time. DSE Search supports limiting queries by ......
Read more >Spatial Search | Apache Solr Reference Guide 7.0
Schema Configuration for RPT; JTS and Polygons; RptWithGeometrySpatialField ... LLPSF supports toggling indexed , stored , docValues , and multiValued .
Read more >JTS indices folder size grows rapidly - IBM
Every time you update a dashboard, the new version of the dashboard is indexed, whereas the old one is marked as deleted in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree that indexes are used for optimisation in a certain use case, and do not describe the data.
On the other hand, uniqueness does describe the data - and should be part of the constraints IMO.
I would possibly go with adding a new constraint (
uniqueWith
?) which would be defined on one field and would include names of other fields in the schema which, when combined, provide unique n-tuples of values.@pwalsh agree on WONTFIX though wonder if this would be worthy of a pattern to document the OKI approach to how this gets specified. In fact, I think a general pattern for adding sql specific info to JTS would be useful - though def a separate issue!