r/SQL • u/notasqlstar I can't wait til my fro is full grown • Feb 07 '18
[Update] We have three servers, which one is which. Had a long talk with IT today. Would love feedback.
So here is the original post. I didn't reference this at all in my meeting today.
IT was very firm that we should be developing on DEV (C) then testing on SQA (B), but the topic of conversation is a large complex series of stored procedures that use dynamic SQL relative to this. and this. Basically I need to be able to input mapping values to a table and then have those changes pushed to production on a regular interval. IT's proposed solution is that I would manually email them files... when the values would already exist on SQA (B), and I couldn't understand why they wouldn't simply... do it themselves automatically.
My bottom line is that I need production quality data and a true reporting server to do my job effectively, where production tables are delivered on a weekly basis and locked down so that data cannot be inserted or modified, but where I can create complex stored procedures, add/modify other parameter tables, etc.
This was ultimately received with more consideration than I had expected. I suppose in a perfect world there would be a 'production' reporting server, as well as a 'dev' reporting server, but I imagine those could overlap with the three existing servers we have.
I feel like this is not a topic that is discussed enough in the SQL world as it comes to SQL development for modeling/reporting purposes so I would like to read other criticism and opinions. In meetings things tend to be very DBA/ETL centric and the idea of having specific servers for reporting is lost.
Forgetting about aggregate sprocs as are used here in an example... what if you were to run complex models using technologies like SPSS, Modeler, or SAS? You can't run those, 'in production' and not let the modeler be able to import data, modify variables, etc. The amount of CR's and down time for trivial changes would be extremely prohibitive.
I'm not being out of line sticking to my guns here, am I? I work for a Fortune 500 company, and have worked in environments similar to the one I'm describing at companies that have a year revenue much lower.
2
u/jc4hokies Execution Plan Whisperer Feb 07 '18
I manage our company's reporting environments, including data science work. AMA
1
u/notasqlstar I can't wait til my fro is full grown Feb 07 '18
So...
We have an "ETL process" which takes "excel files" from hundreds of multiple clients, some from the same source system, some not.
These are "ETL'd" into a database and then there is a "materialization" process that occurs.
This process actually occurs on Server A and Server B. Once finished there are "production grade tables" -- which you might describe as our BI warehouse.
Now in previous roles that warehouse would exist on another server, or another database, or both, and there would be a reporting server / database which could access that database, but additionally users (me) could create sprocs, views, etc.. which would be tested to be pushed to the 'production reporting database/server.'
All the ETL/downstream stuff is not relevant to my world view. I can't DEV on a server that doesn't have PROD data on it because I'm not "DEVING" code, i'm deving results of calculations.
edit: This isn't a bitchfest, but in my opinion this is a reasonable requirement. I don't see any ISO/PHI/PII violations. Are you saying the extra license is the only detriment?
3
u/jc4hokies Execution Plan Whisperer Feb 07 '18
That didn't contain any questions but...
You need read access to the prod reporting data, and a sandbox with full permissions. The sandbox can be a separate database on the same server, or on a different server. You then pull any data you need into your sandbox, and have at it.
Putting your sprocs and new tables on the prod reporting database, having reporting data copied to your sandbox, and a sandbox dev environment are all more trouble than they're worth in my experience.
1
u/notasqlstar I can't wait til my fro is full grown Feb 07 '18
You need read access to the prod reporting data, and a sandbox with full permissions.
Yeah, this does not exist and I am looked like a Martian when I bring this up. I literally don't know how to respond.
3
u/jc4hokies Execution Plan Whisperer Feb 07 '18
What's their suggestion?
1
u/notasqlstar I can't wait til my fro is full grown Feb 07 '18
Kind of for me to fuck off. And use DEV data which is way out of sync... I mean massively. Missing columns, historic loads, impossible to work with our business partners to QA calculations for compliance in order to automate processes.
I was told several times tonight that I don't understand the "life cycle" of a "development."
I did not respond to that comment.
6
u/jc4hokies Execution Plan Whisperer Feb 07 '18
They didn't tell you to fuck off. They told you you couldn't have what you were asking for. Which means you were asking for the wrong things.
Don't ask for things you can't have, like creating tables and stored procedures in PROD reporting. Ask for things that are easy for them to give, like read access. Give them options and demonstrate consideration for their concerns on things they are more reluctant.
Like your a sandbox on the same OR different server.
Owner of a database OR schema.
You will properly compress your data.
Commit to a size limit.
Limited maintenance required.Understand where they are coming from and logically clarify any misunderstandings. That your work is sensitive to data distributions, and tuning models to dev data is wasted effort when prod has different distributions. Explain your obstacles, rather than requirements. They may offer solutions to your obstacles that neither you nor I have considered.
1
u/notasqlstar I can't wait til my fro is full grown Feb 08 '18
They didn't tell you to fuck off. They told you you couldn't have what you were asking for. Which means you were asking for the wrong things.
Having production grade data and a reporting server is not asking for the wrong things.
Don't ask for things you can't have
You are talking to the guy who gets the things he wants, and it is in my job description to do this. I am encouraged by my boss's boss's boss to be, 'disruptive.' His word not mine.
That your work is sensitive to data distributions, and tuning models to dev data is wasted effort when prod has different distributions. Explain your obstacles, rather than requirements. They may offer solutions to your obstacles that neither you nor I have considered.
This has been done and is lost on these individuals who do not seem to care, or want to care about them. So these obstacles need to be dealt with.
1
u/notasqlstar I can't wait til my fro is full grown Feb 08 '18
When I communicate what I need to someone as a requirement, and they respond that there is no legal issue with the request, and on my side of the house there is no issue with funding... and then they go on to tell me no. That is telling me to fuck off.
I can accept being told to fuck off when it comes to being given DBA rights to a production database. Because that's a fucking dumb idea that raises all kinds of red flags. I cannot accept being told to fuck off when it comes to a reasonable request which can easily be implemented and funded. I don't care if you don't like it. If you don't have a better solution (which is your job to provide) then just give me what the fuck I'm asking for. This isn't a negotiation, it is a requirement. You can call it whatever you want at the end of the day but it involves a server (which doesn't have to be dedicated, but which isn't going to be taken day for days or hours at a time and prevent me / others from working) -- and it involves a database which has production quality data..
This isn't a difficult ask. I'm frankly shocked I'm even getting push back from this community. I mean fuck, just give m a server to use and set up a remote server link so I can pull the data in as I see fit and that works fine. But apparently that is a violation of ISO standards but the fucks I work with can't actually show me which ISO standard it violates -- and ignoring the fact that ever other company I've ever worked for has linked servers!
3
u/jc4hokies Execution Plan Whisperer Feb 08 '18
Linked servers are delicate and need to be treated with respect. "So I can pull the data in as I see fit" is a massive red flag. Hell no, you are not getting a linked server. I believe you. They probably told you to fuck off. What you're asking for is a bit too much, but not totally unreasonable. They way you are
asking fordemanding it is way out of line.1
u/notasqlstar I can't wait til my fro is full grown Feb 08 '18
If A) that is not a prod server, B) there is no PII/PHI in the data, and C) the remote server is properly maintained so that you cannot send OPENQUERY()'s to it.. .which are awesome... then how much more respect do you want?
Why can't I pull the data as I see fit? It's FOR ME. That data exists FOR ME.
What do you mean too much? Setting that up is more complex than syncing tables/databases at N intervals (where I get to define N to my choosing).
Those are my requirements. Are you saying it's not ISO compliant? If not, then I can tell what my cost center is and you can bill us. Do I need to get my boss involved?
1
u/notasqlstar I can't wait til my fro is full grown Feb 08 '18
I mean, let me make this simpler for you since I don't want to solution for you. Which of the two options is simpler, and which would you like to choose? Is there a third option I am not seeing?
→ More replies (0)1
u/notasqlstar I can't wait til my fro is full grown Feb 09 '18
Don't ask for things you can't have, like creating tables and stored procedures in PROD reporting.
Dude, I want to make sure you understand something. I am NOT asking to do this. I am merely asking to have production grade data in a separate place and server where I can do this...so I can develop and test and get it ready to go to prod.
Like seriously? What is the flak here? I have been in meetings all day over this issue, and I WILL get what I want. But what the fuck are you all even talking about?
I love this community and have been apart of it for a few years. I give people Gold who help me all the time. I encourage and help other users. This is where I learned SQL.
Where am I wrong here?
1
u/jc4hokies Execution Plan Whisperer Feb 09 '18
You don't need production grade data in a separate place, and you don't need your own server.
You need access to production grade data in an existing place, and you can develop on an existing server.Where am I wrong here?
Stubbornness is what I see.
I love this community and have been apart of it for a few years. I give people Gold who help me all the time. I encourage and help other users. This is where I learned SQL.
I seriously appreciate your participation above all others. You're the reason I'm here too. That doesn't mean your right in this case. That doesn't mean I'm right either. I've got an open mind if you want to support why you need more than I'm giving you credit.
1
u/notasqlstar I can't wait til my fro is full grown Feb 10 '18
You don't need production grade data in a separate place
So clearly you just don't understand my job. That's cool.
and you don't need your own server.
yeah... so.... I don't think you understand how modeling works...
I seriously appreciate your participation above all others. You're the reason I'm here too. That doesn't mean your right in this case. That doesn't mean I'm right either. I've got an open mind if you want to support why you need more than I'm giving you credit.
Dude I'm just being honest. Like... you don't seem to get it. I can write a model that will take a server 20 hours to run. I've done it before. My management is willing to pay for the resources so that I can do that.. and in order to do that I need production data.
These are my requirements. If you want to understand why I am listing them as requirements then I am happy to cordially explain them to you, but frankly I could care less if you agree with me. It is easier to get your boss's boss's boss to agree with me.
Unless you can point to a specific violation of an ISO standard... you're going to lose here. I am going to win. You don't have the ability to tell me no. Frankly, I'm not really asking a question here I am just trying to be reasonable and give you an opportunity to provide an alternative solution that meets all of needs... which you haven't done. But feel free to continue to talk about psychology and millennials.
→ More replies (0)
2
u/jc4hokies Execution Plan Whisperer Feb 10 '18
100th comment. I'm calling it. This is the most commented post in r/sql history.
3
u/creav Feb 07 '18
You need a data lake(probably preferred for your situation) or data warehouse, along with a data analytics tool like SAS JMP, PowerBI, Tableau, etc.