
Better Large Datasets
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I mean I have a boring demo let me pull it up all right very boring demo well I haven't hooked it up to anything all that useful yet uh let's just toss in things like Latin long in here um yeah this is just a big query uh you know as I go in here I change the limit to make this 50 000 you know we're talking yeah a um a pretty large data payload looking at my inspector here to hit the database the result is you know 1.8 Megs um it's pretty big um it's not massive but one of the things we talked about I think last week was sort of the uh inability to necessarily or rather the lack of desire to uh spend
on NFS throughput potentially um and having a different way to be able to store data for larger results in particular for unlimited or you know million plus row downloads and things like that so basically what I did is I hooked up S3 as a sort of secondary uh layer for results so as something gets large or if it's pretty small we'll stick it in NFS if it gets large we'll stick it in S3 which will allow for us to have a much larger data payload for some of these things it will operate into the same fashion it'll get cleaned up it will only stick around for the um time to deliver or if we're catching it for the time to cash and and sort of
operates in a very similar effect and um it's a little bit slower um especially as the data gets larger it takes a little bit longer to write too but it can handle higher throughput um so if the data payload is much larger we can send a lot of data to it and then it also allows for us to in say a remix or a scheduler or some other potential layer in the future to just send down a key so that instead of the cotton layer having to pull the results down and touch it and code it set it down the wire just for the remix to decode it re-encode it send it down the wire to the client the remix layer can theoretically just go
fetch it from a three or store it itself and go you know fetch those payloads um in order to avoid extra Hops and extra encodings especially for large data payloads so this should be the first piece that we need in order to do things like unlimited or really large downloads um also want to do things like stream the results especially for a pivot so we don't have to pull in a you know gigabyte uh data payload in order to encode it as a CSV to send it on the wire um but that's sort of the next option tip of this that says sweet