Cache Preview

Friday Demos · July 28, 2023 · 6:32

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I uh maybe give a little uh preview um yesterday by posting it into a channel but um I am playing with and haven't turned it on everywhere yet but this is my test instance that I have deployed something that has backendry query enabled um it's a little bit hard to tell for sure but um here you can load this um I don't know if you can see all this but I have a sort of my Chrome extension that I have running that tells me that this hit the exact match patch I can Resort this it tells me that I did a front-end read query now refresh the page and it says it did a backend re-query and then of course if I you know want

  2. to do other things you know maybe you pivot in here um it's it's going to use the backend Rick query for all of these queries because it doesn't actually have on the front end now the original data it only has the query data that's available but theoretically we could do something that would allow for the front end and back entry queries to be re-query themselves um and that would sort of allow for for basically it all to happen front end again will the back end requiry be able to feed the front end requiry just add but I yes uh it doesn't currently um yeah got a future state that we will be in yeah like I'm not sure necessarily like there are some odd implications

  3. of some of that stuff which I want to be a little bit careful of um but yeah it definitely makes our lives a little bit easier uh if we uh rather our servers lives a little bit easier if they don't have to do the work um but yeah it's it's pretty quick um I I asked this on GitHub can you actually turn off the front-end requery on Sandbox just so we can see exactly what the back end query feels like as the only caching layer I mean what it is should we just stick with your like what's the point of seeing that right like we're not gonna have that ever so I mean this is what it's doing yeah but it just helps us it

  4. helps us understand the yield that we get out of the back end thing like like from a performance like the way I would explain it is back-end query doesn't the database then it's not really a priority to do much with if it feels closer to the front end requiry experience then we want to invest a lot of time there and if we make it difficult to test the difference and feel it then we're just going to be in an ambiguous State a little bit I mean this is all back entry query this isn't coming from exactly this is all this is all hitting the back end cache um I don't even think I have this query um loaded anywhere so just with the processing in

  5. this it's actually doing a back-endry query on the data that has created that quarter in here so this might hit the exact cache so this hit the exact cash but by removing this column now every single query I'm running is hitting the back end requiring stuff okay now I could go and um run this without cash maybe I'm a tab I may need to pass that no it's hitting back under query it's because I'm I haven't quite hooked up all of the pieces yet um but um it seems to be ignoring that field um but you basically have the ability to go do a bunch of these things so maybe if I add I think I've already done this with um there yeah with weak

  6. so run and Recovery front end recording yeah okay something something funky here I haven't I haven't pressed this part yet um status and it'll do probably well you just you still have the flag in your url so no it seems to be sometimes ignoring that flag um and it's something I actually wanted to talk to you a little bit with Stephen is like how to prioritize in some way shape or form the front end query when we can do both the front and back and it's probably just ignoring this right now based off of how it makes some things um but makes sense can can we do mixed mixed caching layers stuff too like if we're doing a join from like a back end a

  7. back end query and a you know some some of the data stored in the front end whereas is that complicated kind of planning not possibly yet sure why not I mean no yeah we can't do it today um but like theoretically we can send down a a payload that we have well I guess we'd probably have to do it all in one location um at least without like significantly more work but we could do something like take a query result that we have on the front end take a query result that we have on the back end send one of them down to the front end then do the entire query on top of both of those in the front end most of the time

  8. the thing on the front end will be in the back end and so like you're talking if you're talking like 50 milliseconds of latency or something like why should you know we might not want to do lift Heaven and Earth to right like that that makes sense I was thinking more for like the CSV upload use case although although it's fine if it's on the back end too we may actually be depending on how we're running on the back end Johnny we might be able to use mother duck or just duck db2 and be able to actually query csvs directly from the back-end requirable sort of layer and specify them as a data source now too and effectively get CSV not upload but CSV query

  9. for for very cheap I don't I don't think we want to do CSV query until we can merge it with other stuff I think just like introduces an inquiriable layer already yeah but they just said that we can't do that no no they said they can't do it from the front end to the required layer so the thing that I want to do here is basically unless you upload a CSV we do whatever we want with it maybe we shove it into Arrow maybe not but you upload a CSV and it's just another query result that you can then use maybe it's one that is told like you actually have to use this one as opposed to as something that you can use which is

  10. how we're doing all of this require stuff right now so that's kind of how I like that's kind of how I anticipate using some sort of um CSV upload in this sort of a fashion