Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaulting to the use of one DBMS #4896

Open
siaw23-retired opened this issue Mar 1, 2019 · 21 comments
Open

Defaulting to the use of one DBMS #4896

siaw23-retired opened this issue Mar 1, 2019 · 21 comments
Labels
enhancement explains that the issue is to improve upon one of our existing features in-progress installation

Comments

@siaw23-retired
Copy link
Collaborator

siaw23-retired commented Mar 1, 2019

I've been away from plots2 for a while. Coming back and following the README I found it cumbersome to get up to running quickly because there are traces of a number of database management systems in plots2. This makes it hard to set up and have tests running smoothly.

It'd be nice to have one DBMS for all to avoid the configuration headache encountered through this. I believe this will get new contributors up and running quickly and encourage more contribution from people as I think the current multi-db setup/config is a bit intimidating considering we like to welcome first-time coders on board.

I think once this is acceptable to everyone and we get to implement this, we can completely avoid #3840 where @milaaraujo correctly states:

Getting set up can be tough.

Setup is the last thing we want to make hard for new contributors.

@grvsachdeva grvsachdeva added enhancement explains that the issue is to improve upon one of our existing features help wanted requires help by anyone willing to contribute installation in-progress and removed help wanted requires help by anyone willing to contribute labels Mar 1, 2019
@jywarren
Copy link
Member

jywarren commented Mar 1, 2019 via email

@grvsachdeva
Copy link
Member

Nice idea @jywarren. Also, many contributors faced issues while getting started with Mapknitter due to MySQL - publiclab/mapknitter#307.

How about a poll? @siaw23 @jywarren

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019 via email

@siaw23-retired
Copy link
Collaborator Author

Personally I find it unnecessary to create a poll. We use MySQL in production, so, if people vote SQLite, are we are going to switch from MySQL to SQLite? Or are we still going to keep SQLite and MySQL (still multiple DB problems here if people want SQLite).

IMHO we should use the DB that we have in production locally for development (installing MySQL/MariaDB is fairly easy and there are lots of docs for newbies who'd get lost). I updated the README in my PR that shows how to get MariaDB running on Mac and Ubuntu. And by the way I think SQLite should be out completely because I think there has been some added raw SQL queries that won't work on SQLite. This raw SQL here among others is an example.

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019 via email

@siaw23-retired
Copy link
Collaborator Author

OK. Sounds good then.

@milaaraujo
Copy link
Collaborator

I think the poll is a good idea! But I agree 100% with @siaw23 that we should use the DB that we have in production locally for development. :)

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

Just noting that @stefannibrasil and @sashadev-sky have also both voiced support for dropping sqlite -- here! #2712 (comment)

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

I saw a poll app was installed by someone and approved it. @SidharthBansal any thoughts to add here? @cesswairimu ?

@siaw23-retired
Copy link
Collaborator Author

@jywarren where's the poll? I did recommend for a poll app to be installed but didn't do the actual installation. Can you please create the poll for us Jeff?

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019 via email

@siaw23-retired
Copy link
Collaborator Author

@sashadev-sky
Copy link
Member

@jywarren @siaw23 I think you might find that a lot of contributors have worked with sqlite and if they have worked with another DBMS with similar setup configurations as mysql, such as Postgres, that should be taken into consideration in the poll too. If you can set one up, conceptually the setup for the other one will make sense. (This was my own experience).

Also, it would be good to create some setup instructions and send them to the people that poll that they have never used mysql. If they can follow the instructions and setup, we know we are good to go.

I already have this going for macOS in another repo publiclab/mapknitter#355, still need people to test run that one.

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

Testing out here before posting to #4917

Hi all, we're curious what database do you use with plots2? We're discussing in #4896 whether to continue supporting sqlite or not -- and want to know how many people currently use different database types!

/polls MySQL MariaDB SQLite Other

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

/polls MySQL MariaDB SQLite Other

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

Oh, maybe it has to be the first item in the issue?

@jywarren
Copy link
Member

jywarren commented Mar 5, 2019

Aha - ok, here it is: #4919

@sashadev-sky
Copy link
Member

@jywarren I added a quick note about it under the check-in description towards the top so hopefully we'll get some more input. Can you see who is voting or is the poll anonymous?

@sashadev-sky
Copy link
Member

also if this issue becomes high priority and we're not sure how to move forward still I can work with @siaw23 (if you have the time too!) to try and make a complete report pinpointing causes of the issue, possible ways to fix it without getting rid of one DBMS, pros and cons, recommendations, etc.

@johnmidavis
Copy link
Contributor

@gauravano I would like help any way I can to help here.

@grvsachdeva
Copy link
Member

your preference of db - #4919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement explains that the issue is to improve upon one of our existing features in-progress installation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants