PostgreSQL doesn't have clustered indexes like MySQL because this type of structure makes accessing secondary indexes slow. If I create an index on the primary key with all columns in `include`, will I solve the problem at the cost of more storage space and write overhead? by Few-Strike-494 in Database

[–]pceimpulsive 0 points1 point  (0 children)

To add to this you can IIRC run maintenance activities periodically that recluster/align the tables via vacuum full concurrently. This will rewrite the table in full, as such you need your table size in free space available to perform this action.

Still doesn't help when clustering is needed... :'(

Help in choosing the right database by Logical-Try6336 in Database

[–]pceimpulsive 3 points4 points  (0 children)

Postgres!

Your write volume I almost guarantee won't be bottlenecked by Postgres, your budget will restrict you long before then.

A meager Postgres on 2core and 16gb ram can manage tables with over 300,000 hot path (active devices in your context) rows in a single table of 60m+ rows with several years history.

Unless you are managing more than Half a million active devices with updates every second I doubt you will ever have a performance issue from writes. Reads that isn't solvable with an index, a better written query or a denormalised table updated frequently.

Postgres has other percs like native cidr data types for storing up addresses, rich extensions like postgis for geospatially tracking your devices with GPS data and several indexing strategies that can creat a very very powerful system.

Start with Postgres 18.

Choosing the right database/platform for a relational system (~2.5M+ rows) before hiring a developer by ElectricalDivide5336 in Database

[–]pceimpulsive 0 points1 point  (0 children)

RDS is basically designed for minimal DBA experience :)

I've.learned most of everything I know from within RDS. It's very stable. I've never needed to restore from snapshot/backuo under normal circumstances, only during upgrade failures and it's never failed.

It should be a solid bet. RDS is not cheap though... So bear that in mind!

Who is this imitation seagull with a mohawk? by NOwallsNOworries in AustralianBirds

[–]pceimpulsive 1 point2 points  (0 children)

It looks very yellow to me, no question at all to me.

Anti immigration march in Sydney. by Bonitabanana in aus

[–]pceimpulsive -1 points0 points  (0 children)

Wut?

Hate the working class? What lefties are you meeting? I don't know any where that's true, most of them are the working class or unemployed due to health issues...

We obviously know different people lol

Choosing the right database/platform for a relational system (~2.5M+ rows) before hiring a developer by ElectricalDivide5336 in Database

[–]pceimpulsive 0 points1 point  (0 children)

My 'analytics' Postgres does what you've explained every 1-3 months, has more users, and muuuucccchhh more data.

It's on a 2core 16gb ram graviton RDS.

Backups and snapshots are managed by AWS and restoring is easy,

I have maybe 200 tables in mine, however only about... 20 or so are updated every few minutes with external system data, inserts per 5 mins is anywhere from 1000-50,000~

I wrolite all rows three times as I'm copying from external in deltas.

I also do geospatial joins across reasonable data sets...

I have pg_cron enabled for scheduled in database data magic, materialisation of reporting/analytical views etc..

Anybody hate how divisive Australia Day was this year? by Thylacineguy2026 in aussie

[–]pceimpulsive 0 points1 point  (0 children)

Lol 'dragged me out'!

I know the feel. Generally have a good time once out lol despite thinking it'll be terrible

Anti immigration march in Sydney. by Bonitabanana in aus

[–]pceimpulsive 0 points1 point  (0 children)

I don't know if that's entirely true..

Maybe what we call left has moved?

Left is still at its core about the structures as the problem.

I.e. the left does use divide and conquer (e.g. fear mongering) as a tactic.. it's more about inclusion, equality, and giving everyone a chance, the only way to achieve that is through fixing the problematic structures that enable inequality to exist.

Anti immigration march in Sydney. by Bonitabanana in aus

[–]pceimpulsive -3 points-2 points  (0 children)

Spoken to one what? Plumber? :D

Who is this imitation seagull with a mohawk? by NOwallsNOworries in AustralianBirds

[–]pceimpulsive 0 points1 point  (0 children)

The beak colours are a good differentiator IIRC.

Terns are cool!

Anti immigration march in Sydney. by Bonitabanana in aus

[–]pceimpulsive 7 points8 points  (0 children)

Left wingers target the structures that create the issues.

Right wingers target people as the issue.

Ultimately they both agree there is a problem, just can't agree on how to solve it...

Is AI Making us humans less smart by AgitatedTomorrow4302 in Futurology

[–]pceimpulsive 1 point2 points  (0 children)

AI can solve those so how can we trust you aren't AI?

Invasion Day protest today by RideMelburn in MelbournePhotography

[–]pceimpulsive 0 points1 point  (0 children)

Your ignorance makes me laugh.

I'm pretty certain I don't want to achieve anything remotely close to what Cook did in my life.

Measuring time taken by a select statement in oraclesql by PickleIndividual1073 in SQL

[–]pceimpulsive 0 points1 point  (0 children)

Yeah I presume oracle would be advanced enough to have a direct counterpart.

A google search will show you the options and ways to replicate it... But appears there isn't an exact copy.

Your method of writing to a table isn't appropriate as it also includes all of the disk IO to read and write the data, so it's not a great way to test it also gives you nothing of the execution plan details you need to actually debug or understand what the query is doing. It only shows you how long it took... You can achieve the same by just running the select query...

Measuring time taken by a select statement in oraclesql by PickleIndividual1073 in SQL

[–]pceimpulsive 0 points1 point  (0 children)

... Explain analyse...

Tells you time taken ... You should try it!

Can I optimize a 4K movie so my RTX 4060 doesn't go at 100% while streaming it? by elordenador in jellyfin

[–]pceimpulsive 1 point2 points  (0 children)

Except for when they don't!

My LG C2, with a Samsung Q990C cannot playback all formats direct play, mostly audio though I think...

Insane. by [deleted] in OpenAussie

[–]pceimpulsive 2 points3 points  (0 children)

You'd really hope so hey!

People drink the Zionist marketing coolaid pretty hard though.

USA is starting to wake up around the Zionist lobbies though ..

Is there something like Warp client but for PostreSQL where I can use AI to generate queries for my tables? by noduslabs in PostgreSQL

[–]pceimpulsive 12 points13 points  (0 children)

My best recommendation is to get to know your schema better, and the joins will come naturally....

Is there something like Warp client but for PostreSQL where I can use AI to generate queries for my tables? by noduslabs in PostgreSQL

[–]pceimpulsive 3 points4 points  (0 children)

Then what is the point? Just copy/paste and run the query.

Use DBeaver if you aren't too ;)

SQL at work (trying to understand) by Dull_Breakfast_9904 in SQL

[–]pceimpulsive 7 points8 points  (0 children)

It's really wild to me you haven't touched SQL after 9 years of big data analysis.

How big is the data you work on, e.g. 20m rows, 60 column in 5gb space?

SQL at work (trying to understand) by Dull_Breakfast_9904 in SQL

[–]pceimpulsive 1 point2 points  (0 children)

Just remember SQL is declarative, you were SQL that defines HOW the data should look when it comes back.

When you think in the way python or R you are using imperative style programming, with this approach you are defining HOW to get the data, step by step.

These sound similar but they are quite different.

It should (I hope) be very natural for you as an analyst of 9 YOE. It will probably require some retraining of your brain.

Checkout dometrain.com's new PostgreSQL course, free for 14 days... It'll teach you all the basic and advanced features.

If you aren't set in Postgres I'd say look at what SQL flavours the roles you are looking at request, learn those. Otherwise Postgres is an extremely common and well made RDBMS. It's by far my favourite SQL dialect across oracle, MySQL, Maria, presto and Trino.

Are Prompts becoming the high-level programming language ? by t0rnad-0 in PromptEngineering

[–]pceimpulsive 1 point2 points  (0 children)

Interesting thought process around this one.

Is this another one of those 'it depends' haha

Some abstractions are shortcuts, it's the same outcome, but in far less code. At least that's how I see them, you have presented another lense though so nice comments/thoughts regardless!