marcingminski / sqlwatch

SQL Server Performance Monitor
https://docs.sqlwatch.io
Other
428 stars 168 forks source link

Some more ideas :) #6

Open leedsdata opened 6 years ago

leedsdata commented 6 years ago

Hi Marcin,

Great project - and one i think a lot will find value from!

Agree with Chrissy's comments - also some ideas from me:

A mechanism for people to raise new feature requests or bugs via Issues (dbatools have a great mechanism in place for this already, perhaps this could use something similar?)

marcingminski commented 6 years ago

Thank you for the kind words! :) I have some ideas for the centralised repo. This could be approached in two ways:

Same schema I could introduce a concept of a server name to each table which would be part of the composite primary key. On the central instance the [dbo].[sql_perf_mon_server] would be a driver for the data import from "satellites". We would simply add servers we want to import data from there. There will have to be some ETL service running on the central instance of course.

This would increase the size of each "satellite" database but would allow keeping one and universal schema.

The "centralised" instance would be exactly the same with the only difference of having ETL running and more servers defined in the [dbo].[sql_perf_mon_server]

Dedicated schema A slightly different schema, with a server name and perhaps some specific configuration for the central instance. This would not require adding server name columns to the remote databases and would add server name during the import but it would require maintaining two schemas which may not be a great idea.

I am leaning towards option 1 but need to think a bit more of potential benefits of option 2

On the deployment subject - agree. It will be a pain. I am really keen on VS project and let sqlpackage.exe handle deployments. I have been doing this for a few years now with a great success and cannot really go back to script deployments but I want this to be easy for people to use.

So - if we make PS wrapper for sqlpackage.exe it will make it easy to deploy right?

marcingminski commented 6 years ago

I have added standard issue templates like dbatools - thanks for the suggestion!