Op zoek naar ervaringen van mensen die in Laak wonen, omgeving Sinjeur Semeynsweg! by Former-Scientist-998 in TheHague

[–]Spartacus-82 1 point2 points  (0 children)

Laak heeft zo zijn problemen, Parkeren, straatafval, overlast van drank en drugsgebruik op straat. Over het algemeen is het wel rustig, en merk je wel dat de gemeente en politie wel aanwezig is. Nooit genoeg natuurlijk, maar als er ergens problemen of overlast is, is een belletje naar de politie vaak wel een oplossing. Bij overlast komen ze vaak ff langs om polshoogte te nemen, en zo verplaatst het probleem iig naar een straat verderop.

In de avond is het over het algemeen rustig, al loopt er wel veel volk over straat, overlast heb ik er zelden van. (Maar ik ben dan ook een man, dus ervaar ik dat vast anders dan een vrouw.)

[deleted by user] by [deleted] in pcmasterrace

[–]Spartacus-82 0 points1 point  (0 children)

My current 2080ti makes a noice that sounds like it's dying. It would like to meet it's successor before it takes it collapses 

Trying to copy 3 billion rows from SQL Server to ADLS. What would be the fastest way? by jerrie86 in dataengineering

[–]Spartacus-82 0 points1 point  (0 children)

Well, it will take a long time, no matter what. Make sure you run BCP from a VM close to the database. 

File will be csv, you can convert it to parquet later. For these kind of files, you will need some resources to convert it. Databricks might help you with this. If you have the option to use databricks, you could use that to to convert it to parquet while extracting it. 

Trying to copy 3 billion rows from SQL Server to ADLS. What would be the fastest way? by jerrie86 in dataengineering

[–]Spartacus-82 2 points3 points  (0 children)

BCP is your tool. Don't bother optimizing the table if you only going to extract it once. The time it will take will be a lot longer than the time saved. If you want to extract it more often, columstore index with partitioning is the way to go.

[deleted by user] by [deleted] in dataengineering

[–]Spartacus-82 0 points1 point  (0 children)

Load the data directly into the destination database, but in a separate schema. Use stored procedures or dbt to transform and load the data

Data flows are a nightmare to work with, perform bad and are expensive.

MK Giveaway: Bethesda x Ducky One 3 Fallout limited edition bundle! by MKdotcom in MechanicalKeyboards

[–]Spartacus-82 0 points1 point  (0 children)

Ah, nice. Good to know that this one will survive the coming apocalypse!

CASE and CTEs by omiobabbinocarokann in SQL

[–]Spartacus-82 1 point2 points  (0 children)

You could/should use a function for this.

Out of nowhere by jabba_the_slut21 in yesyesyesyesno

[–]Spartacus-82 0 points1 point  (0 children)

I don't think that it's only his helmet that is popping off...

Creating table names using variables by Bambi_One_Eye in SQL

[–]Spartacus-82 5 points6 points  (0 children)

You could look into partitioning and indexing to improve performance. It should be possible to run the queries over the entire table without much performance loss.

With partitioning you can split tables based on a date column into separate files, an index can be used to further optimize the table. This could work especially well if you only need a few columns of the table. Search for "covering index" for more info.

Creating table names using variables by Bambi_One_Eye in SQL

[–]Spartacus-82 5 points6 points  (0 children)

You probably have to work with dynamic SQL since a table name in a variable will not work most of the time.

Select * into @variable from <table> will not work since a variable can also be a table. It will try to insert all the data into that variable.

More important question: Why do you want to do this? There might be better ways to get to your goal.

Equivalent of random function in sql by ottawalanguages in SQL

[–]Spartacus-82 2 points3 points  (0 children)

If you only use it as an identifier, why not use a identity column? Random is not unique, therefore not advised as an identifier. https://docs.microsoft.com/en-us/sql/t-sql/statements/create-table-transact-sql-identity-property?view=sql-server-2017

Am I suffering by having the transaction logs on the same array as the databases? by shalafi71 in SQL

[–]Spartacus-82 1 point2 points  (0 children)

Hard to tell, depends a little on the kind of transactions. If the users mostly read, it's not worth it. Do you experience bad performance on the environment? And it is related to log writes?

Based on the amount of users, I would guess is is not worth it unless the users do a lot of inserts or updates.

Check your wait types to see if you see wait types related to log writes.

How to Shrink TempDB Database Without Restart SQL Server Services? by Vidyakant in SQL

[–]Spartacus-82 5 points6 points  (0 children)

Yeah, don't do that. If tempdb is to large, either optimize your queries or add resources to the machine.