« first day (2879 days earlier)      last day (2286 days later) » 

02:23
@Zane thank you
02:34
@MaxVernon Seems like a decent database design question with six unopposed upvotes. I see @ypercubeᵀᴹ already voted to reopen, so I made a few extra formatting improvements and completed that process.
Sweet!
02:54
4
A: Don't RESEED tables on Query Store Clean

jadarnel27If you're using the command ALTER DATABASE [YourDatabaseName] QUERY_STORE CLEAR to "clean the query store" then behind the scenes it runs the following T-SQL statements: TRUNCATE table sys.plan_persist_runtime_stats; TRUNCATE table sys.plan_persist_runtime_stats_interval; TRUNCATE table sys.plan...

Nice answer for a newbie.
03:52
Haha, thanks Paul.
 
2 hours later…
06:20
0
Q: SHOW CREATE TABLE <tablename> not showing foreighn key name

vickey colorsI wanted to drop the foreighn key ,so i followed link & tried to find foreighn key constraint by below query : SHOW CREATE TABLE ecomexpress_awb; but it gave below result, its not showing foreighn key name , how to find foreighn key constraint , so that i can delete it....

 
1 hour later…
07:44
Morning
Morning
@McNets You look different today.
@hot2use I've downgraded myself to an oldest version
;-)
This is the version I look when I have a Commodore 64
07:54
I have one photo of me at that age, when I had long curly hair down to my shoulders.
@hot2use Long hair? What's that?
08:07
the opposite of what I currently have.
 
2 hours later…
09:47
It would be going to acces the database directly using a Querry stored in a QR-Code — gratefullNoob 2 hours ago
bad idea jeans
Oh wow that's... exploitable
10:46
@PaulWhite This is a really good read from a clearly very forward-thinking group of people. I am somewhat surprised by how few mods we have on dba.se - maybe something to do with the efficiency of said people :P
@George.Palacios Says more about the generally good level of behaviour on our site really
> It was inspired by what we learned by doing very little but watching great people take ownership of a new frontier while we tried to figure out where the magic was. Mostly in the hope that we didn’t break it.
This is true.
That's what I'm constantly trying to figure out.
Most of the moderation workload here is entirely unglamorous and routine janitorial-type stuff.
10:50
The thing is though, that DBA.SE is what it is, because of how the community and the moderators formed it.
The best communities always are
It has changed over the years. IMO the quality of questions and answers has increased constantly.
@hot2use ...and how everyone maintains it. Everything contributes to the perceived quality of the site, from voting to comments to review queue tasks etc.
> Today, many of our 600+ moderators donate their time for over 10 hours a weekand some of them much longer – asking for nothing in return but the opportunity to know they’ve made it possible for learning communities like ours to continue to thrive.
...that's valid for a lot of community members here.
As a result though, I can't express how helpful DBA.SE has been in my learning of SQL Server
10:53
@PaulWhite Ay.
I'm coming up to 4 years of being a DBA and I can safely say without this site I wouldn't know nearly as much.
That plus all the very kind blog writers
Yep there's a lot of good people and content on the site. We can always improve of course.
11:25
I think the culture here on the Heap has been a significant contributor to that. We've got a good group of regulars with a positive culture. It's very easy to slip into a mentality of dissing Lusers with contempt, but we've managed to avoid going that way here. The culture here has reflected in the attitudes of the regulars and moderators.
chat is an underrated part of SE I think. Pity it doesn't get more love.
could be worse though - it could be Slack
Haha - I think the integrations for slack are great.
I think I remember reading a blog post about a guy hooking up the office coffee machine to a slack bot or something similar
Shall we do a live meeting? Seems like ages from the last one.
Wife and kid will be away for Christmas, so I have some free time ;)
@George.Palacios - Do you live anywhere near London?
Leeds at the moment.
So near by some peoples standards :P
11:29
Fancy coming down for drinkies?
Whens this happening?
Probably January sometime. I'm going to be indisposed for December.
We used to have regular drinkies for the dba.se London regulars. I had a major operation and various other intrusions from real life that has interfered with it.
But we could run another one soon.
I am not at all opposed to that.
I'm trying to get more into my people "networking"
How does Jan 24 sound for drinkies - usual location at the pig's ear in Richmond?
6
@martinsmith, @gbn, @JackDouglas, @markstoreysmith, @james lupolt, @martinc, @ypercube, @George.Palacios see ^^^^^^^^
@phil see ^^^^^^^^^^^^
gbn
gbn
@ConcernedOfTunbridgeWells I'll try and blag a trip to the London office
11:37
@gbn Fab.
@PaulWhite - any chance of swinging a junket over this side of the world?
@gbn I'll see if I can do the same actually
Other dates might be the following weeks 31 Jan or 7 Feb
12:03
I'm not sure what the possibility of me venturing down south in the new year will be. Going live with the SAP replacement in January (hopefully). I'm expecting carnage
@Philᵀᴹ You'll probably need a drink by the end of the month in that case
3
That is a very true story
@TomV I lakh this question:
0
Q: Does table size effect query performance?

Iftikhar uddinI have two tables namely table1 and table2, having size 9 GB and 200 MB size respectively. Table 1 has 2 lac + records and Table 2 has 7 lac + records. I'm using the below query for both BUT table 1 is taking forever to load records on higher offsets values WHILE table 2 is loading records so f...

12:31
Somebody was lakhing in understanding.
Jul 29 '15 at 16:06, by Vérace
A lakh or lac (/ˈlæk/ or /ˈlɑːk/; abbreviated L) is a unit in the Indian numbering system equal to one hundred thousand (100,000; scientific notation: 105). In the Indian convention of digit grouping, it is written as 1,00,000. For example, in India 150,000 rupees becomes 1.5 lakh rupees, written as ₹1,50,000 or INR 1,50,000. It is widely used both in official and other contexts in Bangladesh, India, Myanmar, Nepal, Pakistan, and Sri Lanka. It is often used in Indian, Pakistani, and Sri Lankan English. In Pakistan, the word lakh is used mostly in local languages rather than in English media. ...
Ah thanks
@George.Palacios -----^ (running gag)
Yeah I got that bit hahaha
13:00
@hot2use isn't that a duplicate of many targets?
@TomV possibly, yes.
125
Q: Why does MYSQL higher LIMIT offset slow the query down?

RahmanScenario in short: A table with more than 16 million records [2GB in size]. The higher LIMIT offset with SELECT, the slower the query becomes, when using ORDER BY *primary_key* So SELECT * FROM large ORDER BY `id` LIMIT 0, 30 takes far less than SELECT * FROM large ORDER BY `id` LI...

I fully agree after reading the evidence.
Kicked off a VtC as duplicate.
14:01
8
Q: Use of / when using cd

LukasKawerauI'm in my home directory on my mac: $ pwd /Users/lukas When I cd around, I do not (and can't) start the path with /: $ cd Documents/ /Users/lukas/Documents $ cd /Documents -bash: cd: /Documents: No such file or directory Except when I'm in /: $ pwd / $ cd Users /Users $ cd /Users /Users ...

I await the day that somebody manages to use lakh, lakhs, lax, lack and lacks, all in the same sentence
(See what I did there?)
All of the questions on the front page need some love*
In other words: There is at least a lakh (or maybe several lakhs) of lax questions on the front page that lack (or lacks) love.
3
@PaulWhite Well played sir
14:17
Thanks. I make the obvious remarks so others can save their time.
@Philᵀᴹ written while in LAX ;)
Hey guys
I just had a quick question regarding table designs
I've got three relations that are basically identical, and I could merge them and just add a column to distinguish between things. But I'm unsure about doing this because of queries being slowed down if a 'master' table became too large
Apologies if this isn't the right place for a question!
Just asking the obvious: RDBMS? Version? Table Size? Number of Records? Table Width? Table Growth?
Microsoft SQL Server 2017
Table would have about 12 rows
Expecting around 20,000 records per year
@HarryTucker 12 columns you mean I suppose
14:29
Oh yeah
woops
Bit scatterbrained at the moment I suppose
With 20K rows per year, it can't become too large ;)
I have a similar case, with much more rows and we have 3-4 tables, all with similar structure. Having different tables helps with the procedures that write/update/delete from the tables.
The only issue is when we want a query that combines data from all of them
Yeah that would be something
Essentially I need a master view as well that can be used / edit items from the other tables
and we have to write something like (which can get really messy if you need to join other tables as well):
SELECT * FROM a WHERE (long condition)
UNION ALL
SELECT * FROM b WHERE (long condition)
UNION ALL
SELECT * FROM c WHERE (long condition) ;
The decision to be made is whether to have 3 smaller, identical tables with a view that combines them all. Or whether to have one master table with 3 views
I'm still at university and this is my first DB project that will actually go into production so I'm just trying to make sure I get it right
@HarryTucker You won't ;) But that's okay!
You can learn much quicker from mistakes.
Well I say that, it depends what "getting it right" is. I'm sure you'll get it working either way :)
14:36
@George.Palacios thanks, I'm basically the only guy working on this project for the company and they've pretty much left it in my hands so it's a bit daunting (fun though)
By 'right' I just don't want it to fall to pieces the moment I walk away and is decently speedy
When they design bridges, they design them to support over 3* that absolute maximum capacity of the bridge.
If you mock up a dummy data set, you could do the same.
If they're going to be inserting 20k records per year, test the solution with varying numbers of rows from 40k - 400k
Those numbers don't sound too big though
Yeah I was planning on doing a dummy data set
I did something similar when I did some stuff with postgres just to see how it would deal with load
Yeah exactly - performance test to a level far above what you expect the code to need to support, and you should have the confidence you need then.
Do you know of any tools like that for SQL server? Or should I just write a script that generates a bunch of insert statements?
When I used postgres it was a rails project, so I just used the Faker gem in my seeds.rb file
The only one I'm aware of is a RedGate one - others here may be more helpful though.
14:48
@HarryTucker If the data doesn't have to make any sense people often cross join spt_values
I'll have a look at that, thank you!
@HarryTucker Then do something like INSERT INTO a SELECT rand(), rand() FROM spt_values etc
Sorry I didn't use it in that answer, I misremembered
Haha, it's fine
Thank you all for your help
I'll sit down and try to beat this AWS instance into a working database
Have a good day!
14:55
Softtreetech - SQL Assistant has a data generator too. Red-Gate would be my favourite (costs a bit).
You too @HarryTucker
15:10
do any of you PostgreSQL users think this question (10k+ only) is worth being undeleted? And, if so, can you provide a good answer? 2500+ views makes it seem like a fairly common problem.
@MaxVernon the comments suggest that it was a simple mistake ( text vs text[] ) in the declaration of a variable
@ypercubeᵀᴹ yah I saw that. It was originally closed as "too localized" which pretty accurately describes it. Just the view count makes me wonder if there is a place for it if it could have a good answer.
15:28
@ypercubeᵀᴹ Is that a common error would you say?
@PaulWhite Not sure. @dezso ?

« first day (2879 days earlier)      last day (2286 days later) »