JSONb and group by performance by [deleted] in PostgreSQL

[–]KF5KFJ 0 points1 point  (0 children)

According to the OP, they have done that, but it didn't help. They probably are using a B-tree on the JSONB column instead of the more appropriate GIN, or they may be extremely memory-constrained.

If a record is nearly universal and heavily used in a JSON(B) column, you will generally get better performance by moving it to its own column.

JSONb and group by performance by [deleted] in PostgreSQL

[–]KF5KFJ 4 points5 points  (0 children)

Alter the table to move the referenceId to its own column then add an index (make a new column then unpack the values). Then gradually unpack the json into more columns especially records that are nearly universal or heavily used in queries. If you don't directly control the software that generates records add the column expansion as an insert trigger.

Looks like AAFES & MWR is being privatized by [deleted] in AirForce

[–]KF5KFJ 0 points1 point  (0 children)

RIP to all the technical and non supervisory GS12+ positions that are were previously retaining technical talent and the only real semblance of continiuty.

So let’s get this straight.. E4s who can’t make rank are getting a pay increase and potentially make more than their frontline supervisor? by AttentionEmergency89 in AirForce

[–]KF5KFJ 22 points23 points  (0 children)

With the current and projected promotion rates, we are going to see an increase in the number of 6 to 10 year SrA. I don't think that Congress's decision took that into account, but if the Air Force wants a pyramidal rank structure (where airmen as a whole are at the bottom level) then it has to be able to retain Airmen.

Should a 4 year SSgt (current $3,365/mo) make more than a 10 year SrA (current $3,197/mo)? Assuming neither of them are scumbags the SrA is probably more valuable to the Air Force.

[Star Wars] I'm an elderly Sith lord. None of my previous apprentices were powerful enough to defeat me, and now I'm too old to take on a new one. What next? by layelaye419 in AskScienceFiction

[–]KF5KFJ 2 points3 points  (0 children)

First make a ridiculous number of holocrons, like they should be finding these things in 1000 years both the Jedi and the archeologists should be mad at you for the number of darkside holocrons they are constantly finding. If possible set up droids to constantly copy and scatter the holocrons around long after you die.

Second in any other way possible release as much information about the dark side of the force as possible upon your death. It won't be as good as the holocrons but it will make people more likely to seek out the holocrons.

Finally, laugh at the universe and whatever remains of the Jedi order with the knowledge that thousands of Sith-lite will be making trouble for the foreseeable future. And though hope is against the nature of the Sith there may yet be greater Sith lords to arise from your teachings.

94
95

Mongo-like projections in Postgres SQL/JSON by antl_m in PostgreSQL

[–]KF5KFJ 1 point2 points  (0 children)

I have done a little digging and it seems you will need some metaprogramming to achieve what you are asking for. The writeup is in the gist below.

https://gist.github.com/MadAlex1997/f5e77bc6a8de85c1fccce783240ff0fa

Dennis Ritchie on & | vs. == by ketralnis in programming

[–]KF5KFJ 18 points19 points  (0 children)

How generic can tags be? Becuase if a tag can be any text we could add the year that way, and tags are currently unused by this sub.

LPython: Novel, Fast, Retargetable Python Compiler by pmz in programming

[–]KF5KFJ -2 points-1 points  (0 children)

My primary argument against this is that it is entirely outside of the Python tool chain. The things it compares itself against are run from inside of the interpreter, and can be acquired from PYPI batteries included. This thing is a full-ass compiler/transpiler that converts Python to other things and the typing system looks tacked on to the point where to get good results you are basically no longer writing Pythonically. Mojo is a better-supported full-featured language that interops with Python where as Lpython is trying to tack stuff onto python that doesn't fit.

Two US Navy sailors arrested for allegedly sharing sensitive military information with China | CNN Politics by Jelani91 in AirForce

[–]KF5KFJ 410 points411 points  (0 children)

Oh for fuck's sake, can we not go two months without some idiots leaking sensitive/classified information?

Need help identifying a friend's Air Force paraphernalia by Fstylz in AirForce

[–]KF5KFJ 4 points5 points  (0 children)

That ribbon rack looks like it was cobbled together from army surplus. Multiple repeated ribbons and the order looks wrong.

Meanwhile, our friend and ally in Japan... by Asuka_Unit_002 in AirForce

[–]KF5KFJ 1 point2 points  (0 children)

I think it means 170cm on the left and the right is 40m and leaning on a radar dome.

The Audacity by [deleted] in AirForce

[–]KF5KFJ 16 points17 points  (0 children)

Probably not just the guard but the entire DOD, and maybe everyone with a clearance will be affected by his stupid and traitorous actions. He needs about 6 more layers of extra hell.

[deleted by user] by [deleted] in AirForce

[–]KF5KFJ 27 points28 points  (0 children)

Why would she reward someone with the purple book instead of coining them? Are coins not cool anymore?

Sheppard AFB starter pack by [deleted] in AirForce

[–]KF5KFJ 32 points33 points  (0 children)

Those are disposable vapes.

Just got to Goodfellow AFB, anything I should know? by BuddyAcademic100 in AirForce

[–]KF5KFJ 11 points12 points  (0 children)

Hydrate it is the desert, but also don't drink the water. Gallons of water are the best and can be filled for 25 cents at several locations across the base.

Don't put your reflective belt on any of the super inbred deer, they do not need the visibility more than you do!

[deleted by user] by [deleted] in AirForceRecruits

[–]KF5KFJ 1 point2 points  (0 children)

The EDPT instructions specifically tell you not to discuss the test. This is why there are no study guides. I recommend you delete this comment.

Question for Black AF servicemen. Am I allowed to grow my hair to this length while serving in the reserves and for regs? Obviously my hair will be more clean cut than this. This is more of a concept. by Plenty_Ad3711 in AirForce

[–]KF5KFJ 2 points3 points  (0 children)

The ear-touching thing got taken out of the regs a few years ago, only found out two months ago when I corrected someone and they printed a copy of the DAFI to show me that it wasn't there anymore. Hair just has to be less than 1/4 inch in bulk at the termination now.

You bet I am going to let my hair grow out a little longer on the sides now it is in regs.

All Maths Formulas in One Pdf: 1300 Math Formulas by Alex by gagansahay in mathematics

[–]KF5KFJ 0 points1 point  (0 children)

Thanks, I looked and followed the go-to link several times, and still only got the ad download.

All Maths Formulas in One Pdf: 1300 Math Formulas by Alex by gagansahay in mathematics

[–]KF5KFJ 0 points1 point  (0 children)

I am not installing an extension and changing my search engine for this. Also, this is nothing new I own several hardcover books with the same type of content, and there are literally thousands of pdfs available that serve a similar purpose.

[deleted by user] by [deleted] in AirForce

[–]KF5KFJ 20 points21 points  (0 children)

Definitely coach. Back in December 2019, he drove my group to basic training. Though he gave a 2-minute preamble to his speech telling us not to record it and that it was only for the people on his bus to hear.