Better HN
topnewbestaskshowjobs
Log inSign up

didgetmaster

2,060 karma · joined Feb 24, 2022 (4y ago) · 981 submissions

www.Didgets.com myDidgets@gmail.com Didgets.substack.com Didgetsdemos@youtube.com
Submissions

comment 4y ago · link · parent

Ownership implies both risk and reward. Those who own anything (a private company or stock in a public company) are entitled to their share of the profits but also must take on the risk of the value going down. How do you convince all the employees of any company ('even the interns') to take on the risks accompanying ownership?

comment 4y ago · link · parent

A new kind of Key/Value store. In this architecture, keys and values are stored within two separate 'data objects' which are linked together. One holds all the unique values along with their reference counts, the other contains all the keys and links to their mapped values.

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

Maybe that is their way of confirming that you are a real person who actually wants to cancel and not some bot programmed to wreak havoc on some company by canceling many of their customers' service.

comment 4y ago · link · parent

I actually don't mind subscriptions if they are structured correctly. If I had the choice of buying a software package that I could expect to be useful for 5 years (even good software becomes out-of-date over time) for $100 or paying a $20 yearly subscription; I would rather have the subscription.

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

I wasn't suggesting that there are decentralized options for every cloud dependency that is viable today. I am just saying that it is issues like this one which will drive innovation toward solutions that do not require you to put your fate in the hands of some central authority.

comment 4y ago · link · parent

Welcome to the cloud! This is the kind of thing that happens when everyone follows the siren song of cloud computing. I certainly understand the draw of these offerings (access, easy configuration, scalability, low initial cost, etc.) but you are handing control of all your processes and data to a centralized entity who can jerk you around any time they want and doesn't have to account when they make a mistake.

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

I know what 5x cheaper means but that was not what I was asking.

comment 4y ago · link · parent

5x+ better but effectively the same?? What does that mean?

comment 4y ago · link · parent

Is there currently a big market for new logging solutions? It has been years since I worked much with logs, so I don't know much about the current frustrations of those who work with them on a daily basis.

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

Since every startup is different, I don't know how universal any advice might be. If you are not financially wealthy, be prepared for a long haul if your project is non-trivial. Without significant resources, you have to do everything yourself and revenues could be years away.

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

Well, there was that too...

comment 4y ago · link · parent

I think this is a common thing for people who try to start their own greenfield project after working for a long time with a large team on a massive project.

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

There is a old prayer that goes something like:

May God grant me the courage to change things that I can, the patience to endure the things that I can't, and the wisdom to know the difference.

comment 4y ago · link · parent

I agree. It also really helps when you want to negate something.

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

There are plenty of companies that have been highly successful at growing way beyond their first product or service. If Apple had stopped with PCs, we wouldn't have iPods, iPhones, iPads, etc.

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

I think it happened enough that some newer compilers actually post a warning message when it is encountered. Just like switch statements when you don't have a break; statement for every case: clause. In some cases you want the logic to fall through, but it can cause havoc when you didn't want that and you just forgot the break.

comment 4y ago · link · parent

You probably got removed from the list because it cost someone a stamp to mail you the letter. These days if you respond to anything, that just puts you on the 'real person' list that gets distributed to all the spammers. Email and robocalls are essentially free so there is no incentive to take dead ends off the lists anymore.

comment 4y ago · link · parent

It's called signal-to-noise ratio and it affects everything these days. We stopped reading newspapers and magazines when it became harder to find articles in-between all the ads. We stop watching broadcast TV when a typical 30 minute show has 18 minutes of commercials. We stop visiting websites when pop-up and flashing ads overwhelm the site.

Social media sites are no different. The question is will they wake up before all their users flee.

comment 4y ago · link · parent

Even very senior engineers can make simple mistakes that can bruise their egos. Several years ago I was called into the office of the chief architect. I was also a senior engineer with a lot of experience, but he was quite famous (at the time) in the industry for his technical skill. He was convinced he had found a compiler bug. He had some c code that he had traced through the debugger at the assembly level. It was something like this:

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

That is certainly true, but how many of us tie our self worth to things that we create? If you have a project that you have spent years pouring your heart and soul into, how can you not personally be affected if it succeeds or fails?

comment 4y ago · link · parent

We live in a competitive/comparison world (sports, wealth, titles, etc.) and the tech industry is no different. Which CPU is fastest? Which programming language is most popular? Which OS has the most users? Nearly every category has a score-keeper somewhere.

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

The OS should operate on top of an 'object store' instead of a file system. Just like OOP which uses inheritance, these persistent storage objects would inherit traits from higher up in their class hierarchy.

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

I would love to have someone who is very familiar with the parallel query features of Postgres to independently test out my claims. If you have the data for a decent sized table (e.g. a dozen or more columns with at least a couple million rows) and run some queries on both Postgres and Didgets to see which is truly faster. Is that something you are interested in?

comment 4y ago · link · parent

There are a number of innovations that make Didgets extremely fast and parallelizing queries is certainly one of them.

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 a major project (a general-purpose data management system) that I have been working on for 10 years. https://www.Didgets.com

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

Have you tried importing a large Json file into CastleDB? How well does it perform?

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

Not very well apparently. I tried dropping a simple Json file (10 KV pairs per document) that was an array of about 15K documents. It either took an incredibly long time to render it (waited several minutes) or it rejected the file without telling the user anything!

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

>Then the competition becomes who can change the code faster and reach more customers.

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

I have a side project in data management that I have worked on for years (https://www.Didgets.com) and it is finally reached the point where it is an MVP with real value. I have considered adopting an open source license for it, but there are so many to choose from (I read somewhere that there are over 100 accepted kinds of OSS licenses).

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?

1
272829
33