Repository navigation
[ci skip] Add SQL Server (on linux) as a database type - #3807
michaelhixson wants to merge 1 commit into
Conversation
I added [ci skip] because this requires a new techempower/tfb image, so the travis build would fail I think. I don't know whether this will work out because of licensing. See the places where I put "ACCEPT_EULA=Y" in the dockerfiles. I don't know what EULA that refers to and it's possible we won't be able to accept it. I put this together anyway just to see if it's technically possible (it is) and to get review feedback. I added a variant of gemini that uses SQL Server and passes all tests. I did not measure performance at all or do any performance tuning on the database side. Fixes TechEmpower#3786
|
Any reason for installing SqlServer via Just curious
Going from the SqlServer docker hub docs https://hub.docker.com/r/microsoft/mssql-server-linux/
Is also a short EULA linked on the docker page (link at top) If you don't specify a
Info on developer edition from docker page
Going from the SQL Server pricing page
Please note, this is not legal advice :) |
| use hello_world; | ||
| go | ||
| create table world ( | ||
| id int not null identity(1,1) primary key, |
There was a problem hiding this comment.
memory optimised? (using instructions from https://docs.microsoft.com/en-us/sql/relational-databases/in-memory-oltp/demonstration-performance-improvement-of-in-memory-oltp?view=sql-server-2017)
create database hello_world;
go
alter database hello_world add filegroup hello_world_mod contains memory_optimized_data;
alter database hello_world add file
(name = hello_world_dir, filename= '/sqlserver/hello_world_dir')
to filegroup hello_world_mod;
go
use hello_world;
go
create table world (
id int not null identity(1,1) primary key nonclustered hash with (bucket_count = 70000),
randomNumber int not null
) with (memory_optimized = on, durability = schema_and_data);
goThere was a problem hiding this comment.
This could also be durability = schema_only; but then it doesn't persist changes to disk and they are lost across restarts - so that seems more niche than general purpose (e.g. cache/temp data)
There was a problem hiding this comment.
Probably should also be simple recovery mode, or the txn logs will get huge, so:
create database hello_world;
go
alter database hello_world set recovery simple;
go
alter database hello_world add filegroup hello_world_mod contains memory_optimized_data;
alter database hello_world add file
(name = hello_world_dir, filename= '/sqlserver/hello_world_dir')
to filegroup hello_world_mod;
go
use hello_world;
go
create table world (
id int not null identity(1,1) primary key nonclustered hash with (bucket_count = 70000),
randomNumber int not null
) with (memory_optimized = on, durability = schema_and_data);
go| end; | ||
| go | ||
| create table fortune ( | ||
| id int not null identity(1,1) primary key, |
There was a problem hiding this comment.
memory optimised?
create table fortune (
id int not null identity(1,1) primary key nonclustered hash with (bucket_count = 100),
message nvarchar(2048) not null
) with (memory_optimized = on, durability = schema_and_data);
go|
@benaadams Thanks for the comments, by the way. I've been pulled onto another project so there might be some delay before I get back to this, but when I do I'll try out your suggestions. |
|
@michaelhixson no probs; as its a new introduction, am sure authors would want a several iterations of CI before the figures showing up in an official round 😄 (and I assume will be a while before round17) |
|
I'm closing this PR because of the licensing issues. I'm not confident those issues will ever resolve in our favor. |
I added [ci skip] because this requires a new techempower/tfb image, so
the travis build would fail I think.
I don't know whether this will work out because of licensing. See the
places where I put "ACCEPT_EULA=Y" in the dockerfiles. I don't know what
EULA that refers to and it's possible we won't be able to accept it.
I put this together anyway just to see if it's technically possible (it
is) and to get review feedback.
I added a variant of gemini that uses SQL Server and passes all tests.
I did not measure performance at all or do any performance tuning on the
database side.
Fixes #3786