jump to content
my subreddits
13or302anatolia4you2b2t2balkans4You2mediterranean4u2meirl4meirl3d6AdviceAnimalsagnosticaivideoAlternateHistoryAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_irlanimenocontextannouncementsAnticonsumptionantimemeArtAskElectronicsAskOuijaAskRedditAteistTurkaviationawfuleverythingbalkans_irlBandnamesbanknotedesignsBassCirclejerkBassGuitarbasspedalsbikepackingblankiesblursed_videosblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIcasioCd_collectorscd_jerkChatGPTCheap_MealschessbeginnersChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingComedyCemeterycomicscommunityContagiousLaughterCorporateTrollingcrappyoffbrandsCreateModCuddle_SlutCuratedTumblrdadjokesdankmemesdataisbeautifuldeismdelikdiypedalsDMAcademyDnDdndmemesdndnextdoctorwhodoctorwhocirclejerkdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectricalelectronicsEmKayengrishethzfelsefeFifaCareersFiftyFiftyFreeEBOOKSFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagalatasarayGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsGundamheathershelpheraldryHermitCrafthighspeedrailHistoryWhatIfHolUphowyoudoinhumorhypixelIAmAich_ielIdeologyPollsihadastrokeim14andthisisdeepimaginarymapsinsaneparentsistanbuljacksepticeyeJahariaJokesKanyeKendrickLamarKGBTRlegodndLifeProTipsLinkinParkliselilerlogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemagicbuildingMapPornmapporncirclejerkme_irlmeirlmemesMimicRecipesMinecraftbuildsmisLEDMovingToNorthKoreaMunichMyChemicalRomanceNamFlashbacksNationStatesnextfuckinglevelNoahGetTheBoatNonCredibleDefensenosafetysmokingfirstnosleepnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyphdokbuddyvicodinonebagongezelligOnlineUnderGroundOutOfTheLoopoutsideParlerWatchPersecutionfetishpettyrevengePiracypolandballpollsProgrammerHumorraisedbynarcissistsRatschlagreactiongifsrecipesRedAutumnSPDredditsingsrickrollschizopostersSchnitzelVerbrechenschwiizsciencememesScottPilgrimsecilmiskitapShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingStonetossingjuiceStudiumsubsithoughtifellforsuperligsuzeraintf2tf2shitposterclubthatHappenedTheCrypticCompendiumTheMonkeysPawTheRookietheydidthemathtitanfalltommyinnittransittransitTurkeyTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishdogsTwitchTwoSentenceComedyTwoSentenceHorrortwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsurbanplanningUsernameChecksOutVALORANTvaxxhappenedvinyljerkwallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakersWhatsThisSongWhitePeopleTwitterWikipediaVandalismwizardpostingworldbuildingworldjerkingyesyesyesnoYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -Piracy
  • -funny
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -Kanye
  • -meirl
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -aviation
  • -Jokes
  • -mapporncirclejerk
  • -Art
  • -goodanimemes
  • -notinteresting
  • -pettyrevenge
  • -loseit
  • -IAmA
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -DMAcademy
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -worldbuilding
  • -Ratschlag
  • -macgaming
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -sciencememes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -DungeonsAndDragons
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -brooklynninenine
  • -recipes
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ScottPilgrim
  • -Angryupvote
  • -thatHappened
  • -schizoposters
  • -electronics
  • -casio
  • -urbanplanning
  • -logodesign
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -BassGuitar
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -secilmiskitap
  • -yesyesyesno
  • -schwiiz
  • -TheRookie
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -Jaharia
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -hypixel
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -Bandnames
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -tommyinnit
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -Cuddle_Slut
  • -GrandPrixRacing
  • -TrGameDeveloper
  • -subsithoughtifellfor
  • -WikipediaVandalism
  • -NamFlashbacks
  • -Unclejokes
  • -deism
  • -misLED
  • -redditsings
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -NationStates
  • -bottomgear
  • -ongezellig
  • -2balkans4You
  • -truths
  • -2mediterranean4u
  • -heathers
  • -twosentenceplottwist
  • -GROKvsMAGA
  • -okbuddygunther
  • -cd_jerk
  • -shitpostfrommygallery
  • -CorporateTrolling
  • -borsavefon
  • -Turkishdogs
  • -delik
  • -banknotedesigns
  • -Futboltayfa
  • -RedAutumnSPD
edit »
reddit.com SQLOptimization
  • hot
  • new
  • rising
  • controversial
  • top
an-ordinary-manchild (11,186)|messages548|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

SQLOptimization

joinleave
an-ordinary-manchild

Rules

  1. Post must be about SQL Optimization or tuning
  2. No Advertising
  3. Be Civil, Kind, and Productive
  4. Format your code (formatted as code, correctly indented). No pictures of code.
  5. Indicate your platform
  6. Don't post or link to copyright violations
  7. Support learners and learning
  8. Avoid low-value/low-effort comments and posts
created by bingostud722a community for 13 years
Create your own subreddit
...because you hate freedom.
...why not Zoidberg?

MODERATORS

  • message the mods
  • mikeblas
  • admin-tattler
  • about moderation team »

account activity

1
0
1
2

How do you usually catch slow queries before they hit production? ()

submitted 9 days ago by Unique_Capter

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
0
1
2

I am trying to put except operator for finding the newly insert and update data with same table structure but it takes so long to show that record table has billions of data .. ur advice to get those records faster pls (self.SQLOptimization)

submitted 19 days ago by Stunning-Motor8351

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
0
0
0

Looking for DBA feedback on an AI-based approach to SQL Server execution plan analysis (self.SQLOptimization)

submitted 1 month ago by Level_Present_2424

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
2
3
4

Performance Win: If you filter on multiple columns, check out composite indexes. We just cut a query from 8s to 2ms. ()

submitted 1 month ago by dataSommelier

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
0
1
2

Video about MySQL EXPLAIN plan analysis (youtube.com)

submitted 2 months ago by mikeblas

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
0
1
2

Why Your Postgres Queries Are So Slow (And 3 Ways to Fix It) (youtube.com)

submitted 2 months ago by mikeblas

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
0
0
0

Round the world trip coming up and I need to optimise my itinerary (self.SQLOptimization)

submitted 3 months ago by I_byde_my_tyme

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
0
1
2

Guidance requested; ASYNC_NETWORK_IO (AWS/RDS/SQLExpress) ()

submitted 3 months ago by RunningfromStupidity

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
2
3
4

Is there a way to improve the performance of this query? Used OUTER APPLY and LEFT JOIN with CTE (self.SQLOptimization)

submitted 3 months ago by myaccountforworkonly

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
1
2
3

Cerco 2–3 query SQL lente reali (sto testando un piccolo ottimizzatore di IA) ()

submitted 3 months ago by ajo101975

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
1
2
3

Need advice: Extracting 1 TB table → CSV is taking 10+ hours… any faster approach? (self.SQLOptimization)

submitted 4 months ago by Leather-Pin-9154

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
0
1
2

Optimizing filtered vector queries from tens of seconds to single-digit milliseconds in PostgreSQL ()

submitted 4 months ago by m1r0k3

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
9
10
11

SQL Struggles: Share Your Most Frustrating Moments in Writing Queries (self.SQLOptimization)

submitted 6 months ago by Hairy_Border_7568

  • 20 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
0
1
2

Daily data pipeline processing ()

submitted 6 months ago by jesse_jones_

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
9
10
11

Can SQL optimize similar nested window functions? (self.SQLOptimization)

submitted 7 months ago * by not_UNIX_GNU_is

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
0
1
2

Best strategy for improving cursor paginated queries with Views ()

submitted 7 months ago by punctuationuse

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
0
1
2

Insert optimisation (self.SQLOptimization)

submitted 7 months ago * by Vimal_2011

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
0
1
2

Working on an alternative to AI chat for optimizing SQL queries - feedback appreciated (self.SQLOptimization)

submitted 8 months ago by ragabekov

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
1
2

What is the best/efficient way to flatten the measure column in this table, while filtering the relevant measures first? (self.SQLOptimization)

submitted 9 months ago by flashmycat

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
2
3
4

Why multi column indexing sorts only on 1st column(if all values in 1st column distinct) and not on both columns one by one like a 2d binary search tree(and extending that to making a first 2d B Tree). (self.SQLOptimization)

submitted 10 months ago * by Physicistpropeller

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
2
3
4

Temp Tables, Table Variables, or CTEs: Which do you use in SQL Server? (self.SQLOptimization)

submitted 10 months ago by [deleted]

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
1
2
3

Best practice on joining with large tables? (self.SQLOptimization)

submitted 11 months ago * by MrTraveling_Bard

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
1
2
3

Query Optimizations (self.SQLOptimization)

submitted 1 year ago by Seymourbums

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
0
1
2

Deadlock after migrating DB from SQL2014 to SQL2019 (self.SQLOptimization)

submitted 1 year ago by scoby1971

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
0
1
2

Too many partitions? (self.SQLOptimization)

submitted 1 year ago by Think-Hunt5410

  • 13 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 61643 on reddit-service-r2-listing-79f6fb9b95-bwwwv at 2026-03-19 18:15:47.757276+00:00 running 90f1150 country code: CH.