Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@pwm ok so if i understand correctly:
>backend searched object by id in db
>db check with page manager to get data off disk into memory
>once in memory, u can send the data thru internetz
thats scenario a. so i assume by page manager u mean the mmu? or the one provided by the OS (dont know terminology) and not something else. In that case, wouldn't moving json from disk to memory have to happen anyway? why would it be slower in a db than from disk?
and wouldn't reading the data from disk be faster since its a B tree, rather than reading the file sequentially?
then in scenario b, that would mean reading the file sequentially to load it from disk to memory, with the page manager/mmu doing its thing, but having nginx do it directly rather than it going thru snac2 first. so to be faster the db+backend overhead would have to be greater than the savings u get from the B tree.
i'm sure i'm missing a few things here. idk what u mean by "page manager" and which tuples ur talking abt.