• 2 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle








  • I use tridactyl in firefox. Except for emacs and tiling wms I’m not too deep in applications for reducing mouse usage, I tend to use keyboards with ‘better mouse placement’ for example the tex shura which copies the thinkpad trackpoint, or a corne keyboard with a pimoroni trackball. Or a charybdis nano. Even using a smaller keyboard layout counts imo, my favourite non-ergo keyboard layout is 60% which reduces necessary arm-travel-distance a lot :)


  • A database optimization I made was changing a tables id generation from a manual generation scheme (some other table had an entry with the next usable id, it was updated with every entry written) to a uuid generation scheme. The table stores data from a daily import, on a fresh import all previous data is deleted. On some systems, there are more than 10 000 000 entries to be imported on a daily basis, which took 8 hours. Now, with batched inserts and the mentioned improvement in the db scheme, it’s at about 20 minutes.

    TLDR: Reducing the amount of queries sent is good, because although network is usually fast (ms), db requests are still slow compared to the speed of an application (clock cycles).

    And yeah, there is an option to only import changes daily, but sadly that isn’t supported in every environment.