Content pfp
Content
@
0 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
This remains unsolved. I think it's impossible - if anyone wants to learn more about traces and double check my work, would gladly chat
3 replies
1 recast
25 reactions

Kevin pfp
Kevin
@typedarray.eth
Created a gist with examples + more context https://gist.github.com/0xOlias/596f21266023bc79adcff3f4d2c113b7 TL;DR - our requirements are weird, but if we solve this it will save Ponder users lots of time and money (on their RPC bill ๐Ÿ™ƒ)
1 reply
0 recast
1 reaction

Mats pfp
Mats
@mats
Just to confirm: you know that postgres can sort (correctly) on array fields such as traceAddress? If I'm not mistaken, that's what we did (when we were on postgres)
1 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
Oh wow, I did not expect it to work out of the box on the traceAddress format. We'll have to find a way to make this work in SQLite, which (afaict) does not support array column types. New thread to pull on though - thanks!
1 reply
0 recast
1 reaction

Mats pfp
Mats
@mats
Double check that storing as a TEXT and sorting it won't work for you. I think it might produce the same ordering
1 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
I think that will break if any elements exceed 9, eg these will not order properly: [0,1,9] [0,1,11] Thanks again, have more to play with now!
2 replies
0 recast
1 reaction