Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative integers aren't indexed properly #232

Open
mhluongo opened this issue Dec 30, 2013 · 0 comments
Open

Negative integers aren't indexed properly #232

mhluongo opened this issue Dec 30, 2013 · 0 comments
Labels

Comments

@mhluongo
Copy link
Member

Positive integers are simply indexed as zero-filled strings, but negative flip the leading '0' to a '-'. While this makes all negatives less than all positives, it leads to misbehavior on querying a range of negative values on an indexed integer property.

A better scheme might be to simply index the integers as 1's complement with a base64 encoding, ensuring order and a more compact representation.

mhluongo added a commit to mhluongo/neo4django that referenced this issue Jan 12, 2014
mhluongo added a commit to mhluongo/neo4django that referenced this issue Jan 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant