Refine max tag size based on empirical evidence
This commit is contained in:
+4
-2
@@ -56,8 +56,10 @@ func (s *Subgraph) FirstNodeByLabel(label string) *Node {
|
|||||||
// Helpers
|
// Helpers
|
||||||
|
|
||||||
func IsValidTag(t roots.Tag) bool {
|
func IsValidTag(t roots.Tag) bool {
|
||||||
if len(t[0])+len(t[1]) > 8192 {
|
// Skip tags that are too large for the neo4j indexer
|
||||||
// Skip tags that are too large for the neo4j indexer
|
// Proven in 5.26 Community: a prop's name + value must be under 8162 bytes
|
||||||
|
// 8000 bytes gives an ample buffer
|
||||||
|
if len(t[0])+len(t[1]) > 8000 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user