2,060 karma · joined Feb 24, 2022 (4y ago) · 981 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
The architecture allows any value to be mapped to one or more keys and any key to be mapped to one or more values (unless an attribute on the data object prevents it). These KV stores can be used to attach tags to other objects. They can be used to form columns in relational tables (i.e. a columnar store). It can be used to create indexes into file contents.
Each object is designed for parallel access by multiple threads. Only a single block needs to be locked to update any value or key so multiple writes can occur at the same time. The data in each object is organized to find values or keys without inspecting every block. It is very fast and allows both OLTP and OLAP operations on the same data set.
So far, I have used them to attach tags to millions of files and do searches. I have created relational tables that I can query much faster than the same table in Postgres (https://www.youtube.com/watch?v=OVICKCkWMZE). I have created 3D relational tables that can be queried the same way 2D tables have traditionally been queried (https://www.youtube.com/watch?v=AXqvWMmoL1M).
The software is currently in an open beta and anyone can download and try it out on their own data set. https://www.Didgets.com
comment 4y ago · link · parent
The problem is that most vendors want you to pay about half of what a package would normally cost for a perpetual license on a yearly basis. Anything over 2 years becomes more expensive.
comment 4y ago · link · parent
comment 4y ago · link · parent
The pendulum of centralized vs de-centralized architectures has been swinging full tilt in the direction of centralized for some time. It is stuff like this which will eventually swing it back the other way.
817.
Ask HN: How do you configure Postgres for parallel queries?
3 points · by didgetmaster · 4y ago · 1 comment
comment 4y ago · link · parent
There will always be potential for a 'better mousetrap' to take some market share from existing solutions, but are current ones bad enough that a great solution could come in an capture significant market share? Or are today's systems 'good enough' that any new solution would face huge headwinds, even if it has some cool features?
The reason I ask is because I am building a new kind of general-purpose data management system (https://www.Didgets.com) that can handle all kinds of data. It does file data, relational tables, Key-Value stores and other kinds of NoSql data. I did a little proto-typing of it managing some simple logging data and it seemed to work really well (in my opinion). But I would need to do a bit more work to get a good demo going.
I have limited resources, so I would only want to do that if there is a significant demand in the logging space for something new. What is the biggest 'pain point' for people working with log data today?
comment 4y ago · link · parent
Not being able to quit your day job and devote all your time to it can push the schedule back significantly.
Sometimes, you can convince others to join you for a while without pay (only promises of equity), but unless they are 'all in', they generally fall away pretty fast.
comment 4y ago · link · parent
Working on something really big means that you only do a small portion of everything that needs to be done. You might write unit tests for just the component you work on, but integration and user tests are handed over to the testing team. CI has its own team. Architecture, UI, database, documentation, etc. might have their own dedicated teams. Each team develops deep domain knowledge in their area and often optimizes and customizes it to death.
When you start your own thing, you have to do everything. MAKE files are not created for you. All the design and customer relations are now part of your duties. Sales, marketing, support. The solo developer has many hats to wear and you have to understand all of it.
comment 4y ago · link · parent
if(!condition) is a much better read and less prone to errors than trying to negate a long statement inside the if().
This pattern also eliminates duplication. I have fixed bugs in code where the same long if condition was duplicated several times within the same function (probably with cut and paste). This wastes cycles recalculating it each time and runs the risk of changing one of them without changing them all.
comment 4y ago · link · parent
The danger is when a startup seeks to grow just for growth sake. Hire way more people than we really need so we attract investors by showing rapid growth is their modus operandi. That approach has actually worked enough that many companies are willing to travel that risky road. But that road is also littered with casualties.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Social media sites are no different. The question is will they wake up before all their users flee.
comment 4y ago · link · parent
if(/some really long boolean value with AND and OR clauses/); { /* some code to execute if TRUE */ }
He was sure that the if statement was FALSE some of the time, but the code inside the brackets would always execute. He spent more than an hour pouring over the code.
It took me a few minutes before I noticed the semicolon at the end of the if statement. I'm sure he felt stupid when I pointed it out.
comment 4y ago · link · parent
Where would we be if that competitive behavior didn't drive people to do better? I have a data management project that I regularly benchmark against conventional file systems and databases. I get a thrill when a set of DB queries run 3x or 4x faster than on Postgres or MySQL. (https://www.youtube.com/watch?v=OVICKCkWMZE) But am I satisfied? No! I sit down and try to figure out how to make it even faster, easier, or use less resources.
comment 4y ago · link · parent
Normal files would just contain a 'bag of bits' like current file systems treat files. Objects would have attributes and methods that make them different than the other objects used by the system.
For example, the 'boot object' would just point to the 'loader object' which contained the IDs of all the operating system modules that are needed to get the OS up and running. You could have multiple loader objects (one for each OS or version of the OS you wanted to boot) within the same container. Imagine being able to have every Windows or Linux version installed within the same volume and be able to boot up any one of them! Files that are shared between OS versions would just have their IDs within both loader objects.
Configuration objects, logging objects, folder objects, policy objects, and other types of objects would be used by the OS for particular behaviors. Objects could also have attributes to distinguish between ones downloaded off the internet and ones the user created. (Why backup all those cat videos you could easily re-download?) Be able to easily distinguish all the photos from the documents even when there are millions of each and without having to memorize all their file extensions for various formats.
This is the system I have been building. https://www.Didgets.com
comment 4y ago · link · parent
comment 4y ago · link · parent
When I performed the benchmarks against Postgres, I assumed that parallelization was on by default. I certainly saw output when I performed the EXPLAIN ANALYZE operations that indicated it was working (e.g. 'Workers Planned', 'Workers Launched' and 'Parallel Bitmap Heap Scan...'). I haven't worked extensively with Postgres since version 9.5 so I haven't kept up on all the configuration settings.
After getting this message, I went into the Postgresql.conf file and bumped up the values for max_worker_processes and max_parallel_workers. This seemed to make some of the queries a bit faster, but I have not re-run the benchmarks in the video.
comment 4y ago · link · parent
I have had a few friends help out with some pieces, but 99%+ of the work I have done alone. I also have some people who I can discuss the architecture with but I don't need anyone's permission to make a radical change.
The project is so big that I can't possibly do it all by myself and I have had to learn quite a bit outside my area of expertise (file systems and databases). Even though I could have done it faster with a big team, it is liberating to have full control over a project.
comment 4y ago · link · parent
I created a DB tool that will create a relational table from a Json or Json Lines file and let you do queries and analytics on it. https://www.Didgets.com
It is able to import 5M rows where each row is 10 columns (1.2 GB Json Lines file) in under one minute (56 seconds on my machine).
Here is a short video showing how to do it: https://www.youtube.com/watch?v=EHwBspzBDbs
comment 4y ago · link · parent
I also tried it with a small (300 lines) Json Lines file and it doesn't seem to support this format.
comment 4y ago · link · parent
That is not very reassuring advice for a small developer who has limited resources. By opening your source code, you have just given up any head start you might have over the competition. They now have access to every line of code you spent hours agonizing over to get it right. Now they can out market you and leverage their vast resources to steal away any of your potential customers.
comment 4y ago · link · parent
Stories like this one make me nervous about choosing the wrong one. Once you let the genie out of the bottle, there is no putting it back in. You can change the license for future versions, but some big company has the right to fork your code at that point and bury you with their superior resources.
How do you choose a good license without shooting yourself in the foot?