Jump to content
  • 0

Query length maximum 4096 in tag-based filtering including sub-tags.


hpchavaz

Idea

Posted

Thanks to Evernote for introducing the ability to include sub-tags in tag-based filtering. 

However it seems that this functionality is implemented by generating a query on a database which poses the following problem:

When we ask for the inclusion of the sub-tags of a parent tag with a large descendant tree (many children or deep tree, or even tags with long labels), a message indicating that the query cannot be longer than 4096 characters appears.

This is all the more annoying as it is in the case of complex trees that the feature is most useful.

6 replies to this idea

Recommended Posts

  • 0
  • Level 5
Posted

Just a small calculation: Tag length 40 characters (which is already a mamouth tree of nesting levels) means 100 tags can roughly be queried before it hits the limit.

How many users do you think will see this as a problem ? I think you can feel yourself member of a very exclusive club …

Anyhow, if this is a problem for you, contact support.

  • 0
Posted
2 hours ago, hpchavaz said:

When we ask for the inclusion of the sub-tags of a parent tag with a large descendant tree (many children or deep tree, or even tags with long labels), a message indicating that the query cannot be longer than 4096 characters appears.

This has always been an issue in V10 in the unlikely event of you wanting to search for the notes that contain all the sub tags (the only option prior to the new sub tag behaviour). I don't really understand why this limit is there. One of my top level tags (I only have 7) definitely has many more sub tags than can be searched for. In practice this means ensuring that the top level tag is always included in the note rather than just using it as a way of structuring a hierarchy. This does however defeat the object of being able to search for any of the sub-tags in the first place if each note containing the sub tag also has to contain the parent tag.

  • 0
Posted
4 hours ago, PinkElephant said:

Anyhow, if this is a problem for you, contact support.

It is a problem.

 

  • 0
Posted

Bringing this thread because I'm running into issues.

 

Whenever I share something with someone, I tag it with a Subtag that is nested in "Shared." I am trying to find everything I've shared on XXX topic. I chose the parent tag, and chose the option to include all subtags. I'm now getting the error that the search query exceeds 4096. So I can't do this search.

 

 

  • 0
Posted
2 hours ago, notetakeingguy said:

I'm now getting the error that the search query exceeds 4096. So I can't do this search.

A work around might be to introduce another tag level between the top tag and the sub tags.

Best illustrated with an example. Lets say the main tag is called tag1 and contains 8 sub tags called a to h

tag1 🢂 a,b,c,d,e,d,g,h

Introduce two new sub tags called tag1a and tag1b. Drag half of your existing tags into tag1a and half into tag1b. No need to add tag1a or tag1b to any notes

tag1 🢂 tag1a 🢂 a,b,c,d

tag1 🢂 tag1b 🢂 e,f,g,h

You can then select these new empty tags (tag1a and tag1b) in turn and choose the option to include sub tags. You would need to do this for each of your new tags.

I don't know why there is a hard limit of 4096 characters but I always assume that any power of 2 (2^12 in this case) is not an arbiatary choice!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...