asciilifeform: for all of the cruel things i have said about postgres : it crashed 0 times.
asciilifeform: mysql is a shitsandwich, and i will not touch it (it fucking CRASHES)
asciilifeform: mircea_popescu: it is currently a cached image, i implemented it. the cached snapshots however last for a limited time (iirc i have it set to half hr per url)
asciilifeform: phf, mircea_popescu , et al : one thing that would immediately make a very palpable difference in speed is if there were a permanent way to order postgres to perform all reads immediately, disregarding all locks.
asciilifeform: if there is some other way of doing it, i'm all ears
asciilifeform: mircea_popescu: point of 'nursery' was to do the 'do we have this fp? how about this? ...' a few thou. at a time, is all.
asciilifeform: (and yes, it is the obviously correct way to process thous. of keyz, no question)
asciilifeform: how to make the www piece respond at all while this runs ?
asciilifeform: mircea_popescu might be social-integrated-genius but often recommends algo that adds up to escherian skyscraper. and so results in headache thread.
asciilifeform: mircea_popescu: suggest algo, i'm all ears.
asciilifeform: mircea_popescu: the other obvious thing would be to dispense with 'real time submission' entirely, and when someone dumps in a key, it goes into next batch. but we discussed this earlier in this thread, it would mean that the thing cannot be used as sks-like tool.
asciilifeform: this has to be done programmatically ?
asciilifeform: phf: what means 'rebuild it on a crash'
asciilifeform: (and bernsteinization requires access to ~all~ moduli, as i think is obvious, and not simply 'most recent ones')
asciilifeform: mircea_popescu: but yes, for next version (presently only exists in my notebook) there is a nursery and it gets merged into main table at night. but this makes for considerably more complex system, where there are two very distinct types of submission, 'realtime' and 'scripted' , and they get treated quite differently.
asciilifeform: but what this adds up to is to have ~two~ quite separate phuctors. we wouldn't query the nursery, for instance, when someone keys in a url with a hash
asciilifeform: it is the most obvious unmassaged piece , aha. the correct algo is , imho, to have separate 'nursery' (gcism term of art) table for the batch submits.
asciilifeform: i dun give half a shit about 'image'. laying out the fact of why the thing is as it is.
asciilifeform: that way there is exactly one procedural path for key submission, and no duplicate logic.
asciilifeform: they get thrown into same hole as if human submits.
asciilifeform: which is to say, rewrite of WHOLE thing. we had a thread.
asciilifeform: mircea_popescu: actually i do not. because it will require 100x more complex mechanism.
asciilifeform: (which was for some 'script kid' php kit)
asciilifeform: mats: i especially loved the 1 single av signature offered
asciilifeform: (in fact, dumping out the entire db, and properly bignumizing, takes about 3min total for the current db.)
asciilifeform: mircea_popescu is seeing it through the naive vertically integrating rockefeller eyes, 'power plant expensive? let's put it right in my mansion'
asciilifeform: if it somehow had to happen inside postgres, it would not bypass the lock.
asciilifeform: understand, the only reason why the thing works at all, is that this one small part of it, the bernsteinization, can be made ~entirely~ independent from the db locking idiocy
asciilifeform: because the actual bottleneck is '1000s of queries AND inserts / second AND guaranteed realtime consistent'
asciilifeform: a sql or similar db system with built-in bignumatron could be useful and interesting. but no such thing exists. nor would it solve the actual bottleneck in phuctor if it were to be discovered tonight.
asciilifeform: i for one do not expect to live long enough to make a serious attempt at such a thing.
asciilifeform: mircea_popescu: if you think trb is a hard nut to crack, picture reading, grasping postgres.
asciilifeform: so that leaves 1 plausible explanation.
asciilifeform: and at this point it is imho unlikely that he has not heard of phuctor.