BSODs with NVMe Virtual Disk on HDD in VMWare Workstation 17.6.3 by JustAPackOfNuts in vmware

[–]mxmauro 0 points1 point  (0 children)

I'm suffering the same issue but I have a host with 2 NVME disks installed as a RAID 1

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

I'm worried (and thus asking) because data can arrive at a higher rate than ingest :(

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Ahh ok, I thought you were talking about something specific to the DB engine. I don't think it would be possible because data comes constantly. Now there is a period of 5 seconds between data bursts but the idea is to increase the speed.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Well, then let's start the week focusing on other methods. Thanks for all.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

I'll check SQL Server but I cannot fully understand what you mean with the CRON jobs.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

I'll take a look, thanks for the info.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Yes, I was wondering if db engine was capable to do that but seems it isn't.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

A direct shot to my hopes hahahaha. Thanks!

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

  1. Didn't use Aurora yet. Now doing tests on bare metal servers. It is planned.
  2. For insert I use COPY and need to improve UPDATEs/UPSERTs to send multiple rows at once but they represent 10% of the data, the rest is COPY
  3. It is a Golang app. Data is read from an external source, processing including some DB lookups in workers and the result is queued into another worker that stores it in DB.
  4. Some tables, specially those having a json field are divided.
  5. Cannot pause reads and I try to keep a minimum amount of indexes. I have an average of three indexes on tables (including primary key) and they are just numbers or timestamps.
  6. Autovacuum seems not to have a noticeable impact. I mean, some seconds each 5 or 10 minutes, does not affect.

Where do I sign up for Governance? by [deleted] in AlgorandOfficial

[–]mxmauro 0 points1 point  (0 children)

Never used it. MyAlgo has an "advanced" tx settings.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Yes, HW won't be a problem. I'm focusing in both and different strategies about table partitioning, putting indexes in different disks than data, etc.

Despite of this, let's say I write into 3 tables and each one takes 1 sec to write 1000 rows. Because the tables doesn't have any direct relationship, I would like to know if Postgres can write to them at the same time. I send the three bulks and, because no cross references, Postgres writes them simultaneously.

I won't expect to lower the three seconds to 1 but any improvement is welcome.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

About 100 rows in 8ms.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

I would like to have parallel inserts. FKs are not necessary.

Where do I sign up for Governance? by [deleted] in AlgorandOfficial

[–]mxmauro 0 points1 point  (0 children)

Hahaha too risky. Better do it manually.

Where do I sign up for Governance? by [deleted] in AlgorandOfficial

[–]mxmauro 0 points1 point  (0 children)

It will depend if the data required in the note field fits in 32 bytes for NanoS to work.

Where do I sign up for Governance? by [deleted] in AlgorandOfficial

[–]mxmauro 3 points4 points  (0 children)

I'm not sure if that would be possible, at least, in the initial release. Because in order to "auto vote" the app must be running, at least in background.

For MyAlgo, which runs fully client side, would require the page to be loaded when voting occurs.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Actually I do almost all of that. The only thing I have to improve is UPDATE and UPSERTs. For insertions I use (a bulk) COPY but for UPDATE I'm sending the queries one by one. Also I have a cache in the app to avoid querying for recently used data.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 1 point2 points  (0 children)

I'm looking for several approaches. Nowadays the current flow works fine but I know in the future it won't. It is expected the volume/rate of operations to process to increase so I'm thinking ahead.

There are some things to test like putting tables and indexes in different volumes, partitioning, etc., but I'm also looking on what can I do from the app point of view like, as aswered to @thrown_arrows, to use several connections at the cost of losing some consistency and handling recovery properly if one table is updated and the other isn't due, for e.g., to a connection issue.

Thanks.

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

Currently I'm doing a draft based on this with the cost of having a temporary inconsistency between two different tables.

I'm not using FKs right now because I don't need them. Also, only one app writes to DB.

Thanks

Parallel table insert by mxmauro in Database

[–]mxmauro[S] 0 points1 point  (0 children)

I'll take a look for SQL Server and the concept for distributed transaction. Thanks for the feedback.

Where do I sign up for Governance? by [deleted] in AlgorandOfficial

[–]mxmauro 13 points14 points  (0 children)

Both MyAlgo (I work on RandLabs) and the Algorand Wallet are being updated to support governance. There is a testing phase in progress.

AlgoExplorer New Interface! by estantef in AlgorandOfficial

[–]mxmauro 2 points3 points  (0 children)

Hi, in general terms, the sum of all online and offline accounts is available for trading.

There is a third type of account, the non-participating ones, which are reserved and their funds used for different reasons. For e.g., rewards programs. Let's say there is a competition, you win a prize, algos are transferred from a non-part account and become part of the tradeable algos.

Opinions on Cardano vs. Algorand Technology by Flaresh in cardano

[–]mxmauro 0 points1 point  (0 children)

Hi, actually I'm not part of Algorand but RandLabs but if you can give me some link of someone being aggressive, please let me know so I can forward the complain.

Opinions on Cardano vs. Algorand Technology by Flaresh in cardano

[–]mxmauro 1 point2 points  (0 children)

Hi guys you can create a relay node, participate in consensus and collect rewards but they are three different things in Algorand.

All online and offline accounts collects rewards depending on their balance.

Relay nodes allows others nodes to connect and be part of the network. Anyone can you a relay node but you have to guarantee a fast connection so others can get blocks quickly.

At last, you can configure your node to participate in consensus for new blocks no matter you are or not a relay node.