2,602 karma · joined Jul 31, 2020 (6y ago) · 1,754 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
If you also used the mt option with 7zip and just stored you probably could have a decent read rate as I think it spins extra threads.
comment 5y ago · link · parent
In this case they are using scarcity and a form of rushing the sale before the buyer realizes what they have done. There are plenty of scarce items. But usually if the seller is telling you they are scarce and you only have minutes to decide, ignore them. It is an old trick. It works very well on someone who feels they will be left out in some way.
comment 5y ago · link · parent
comment 5y ago · link · parent
That one is pretty close. Just at step 4 instead of 30 mins she did 24 hours as the previous steps usually took 1-2 hours and she was tired because of how much flour she used. She also used 9-10 cups of flour instead of the 3-4 that calls for as she was also wanting to make a larger batch. If you did that little amount of flour it would probably be very and goopy to roll and cut in the next steps. She also fiddled the sugar, with corn syrup and molasses, I do not have it in front of me but I think it ended up being 1/2cup each and 1/2 cup regular sugar 1/2 cup brown. She also would add in 1/4tsp of anise. But basically all the wet stuff, spices into that, incorporate it good, then add flour until the correct consistency to roll out. With as much flour as she used you better have a good arm or a monster blender. But that recipe should be pretty close, there are thousands or variations on the internet (many include pepper and lemon), these fall on the ginger tasting side. They should be a crunchy cookie not doughy.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
This also nicely shows one of the fun things with table scans. They look decent at first then perf goes crappy. Then you get to learn something. In this case it looks like she used normalization to scrunch out the main table size (win on the scan rate, as it would not be hitting the disk as much with faster row reads). It probably also helped just on the 'to' lookups. Think about how many people are in an org, even a large company has a finite number of people but they get thousands of emails a week. That table is going to be massively smaller than keeping it in every row copied over and over. Just doing the 'to' clause alone would dump out huge amounts of that scan it was doing. That is even before considering an index.
The trick with most SQL instances is do less work. Grab less rows when you can. Use smaller tables if you can. Throw out unnecessary data from your rows if you can. Reduce round trips to the disk if you can (which usually conflicts with the previous rules). Pick your data ordering well. See if you can get your lookups to be ints instead of other datatypes. Indexes usually are a good first tool to grab when speeding up a query. But they do have a cost, on insert/update/delete and disk. Usually that cost is less than your lookup time, but not always. But you stick all of that together and you can have a DB that is really performant.
For me the fun one was one DB I worked in they used a GUID as the primary key, and therefore FK into other tables. Which also was the default ordering key on the disk. Took me awhile to make them understand why the perf on look up was so bad. I know why they did it and it made sense at the time to do it that way. But long term it was holding things back and ballooning the data size and crushing the lookup times.
How did I come by all of this? Lots of reading and stubbing my toe on things and watching other do the same. Most of the time you do not get a 'mentor'. :( But I sure try to teach others.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
If I just do 'SELECT *' and execute it, it does not rotate through all the tables. I did not specify it. Same with 'SELECT from xyz' if I can not have it empty and return all. Yet where is special somehow.
comment 5y ago · link · parent
The correct action the companies should be doing is reviewing their routes and what is a realistic way to do them. That route from 1970 no longer is the same time frame. The driving rules have changed and so has the road layout.
comment 5y ago · link · parent
comment 5y ago · link · parent
I personally try to keep my physical collections small. Only a few items that I consider interesting I keep. Except my DVD collection, video games, and my wifes CD collection. I like them so I keep those. But if I stopped caring about it I would take an active interesting in getting rid of it. I do not want to burden someone else with my collection of junk. My personal coin collection if you went and spent it as cash I would be a bit upset but no real value would have been lost. The 50 or so coins I have are merely novelty not valuable and fit in a plastic cup.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent