-
lovetox
i think i have thought through all cases, and the tuple idea looks good to me, i want to try that. Last open question i would have is, can i express a tuple like (100, -1) in one database field?
-
lovetox
or will i need 2, maybe there is some magic how i can turn this tuple into some integer that is sortable
-
singpolyma
If you're willing to live with some limits you could bit pack something equivalent into one 64bit field or so
-
singpolyma
I think
-
singpolyma
That's not my area as much
-
singpolyma
Or in some db you can store a tuple directly but probably not in sqlite
-
lovetox
i never did this, but can i really have a - sign in the later part of the integer?
-
lovetox
because its important that the first int is positive, and only the second in the tuple can become negative
-
singpolyma
No, it wouldn't be a minus but rather ordering the fields inside the bits so that sorting works out
-
singpolyma
I'd just do two fields myself probably
-
lovetox
yeah i think thats over my head, i probably will do also 2, thought i asked maybe there was something obvious i missed