Refine max tag size based on empirical evidence

This commit is contained in:
jay
2026-11-27 08:41:09 -05:00
parent d2eadd5cd7
commit fe84f9168b
+4 -2
View File
@@ -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