Hi, the maximum length for collection names is currently restricted to 64 characters as you already found out.
ArangoDB should be able to handle longer collection names however. I created a PR with such change for a test and it seems it doesn't require too many changes to pass: https://github.com/arangodb/arangodb/pull/9890 However, there may be client drivers which also enforce the name length limit. For example, if a collection with a name of 65 chars is created in the web UI and then a driver reads it back but has the "old" restriction, things could fall apart. So it is a bit delicate to change this in the middle of a released version. It should be doable to perform the change for the release following 3.5, which is right now in development and will be released eventually as 3.6, with a yet-unknown ETA. Not sure if this helps in your particular case, but making such changes in the middle of a release may have too many unintended side-effects. Until then, I think a solution that creates a deterministic hash from a long name to produce a collection name of "acceptable" length (i.e. <= 64 chars) should be working. Best regards Jan Am Sonntag, 1. September 2019 11:04:42 UTC+2 schrieb Massimo Bono: > > Hi all, > > Just a question: It would be possible (as a feature request) to increase > the maximum length of a collection name? As for now, the documentation > clearly states: > > The maximum allowed length of a collection name is 64 bytes >> > > At the moment I have several collections which I dynamically create. Their > names can be lengthy and I keep encoutering error 1208 (collection name > illegal name). As a workaround, I'm compressing the collection name to > reduce its size, but it would be nicer to increase the collection name > length. > > I know someone else wanted to increase the character available in the > collection name (here <https://github.com/arangodb/arangodb/issues/243>) > but that is another (closed) issue. > > Does it make sense? > > Thank you for any kind reply > > PS: sorry if I didn't comply with any question guidelines, this is my > first time posting here :D > -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/arangodb/7b518e53-d8ff-4233-a438-1a5a3b8d5a6c%40googlegroups.com.
