question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[JTS] Support for indexes

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
akarivcommented, Jul 12, 2016

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.

0reactions
rufuspollockcommented, Dec 21, 2016

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found