Giter Site home page Giter Site logo

Allow longer database names about amp HOT 5 CLOSED

amp-cli avatar amp-cli commented on June 23, 2024
Allow longer database names

from amp.

Comments (5)

totten avatar totten commented on June 23, 2024

Agree that would be good.

IIRC, the constraint originated because the DB name matched the DB username, and the DB username (up until 5.7.8) was limited to 16 char. But really it's OK for the DB and user to be a little different.

from amp.

totten avatar totten commented on June 23, 2024

@michaelmcandrew This should be improved by #54 (amp v0.5.0).

from amp.

totten avatar totten commented on June 23, 2024

Re-reading, do you think it's worth reopening to (a) go all the way to 64 chars and (b) put a delimiter between the build and DB names (i.e. dmastercivi_12345 => dmaster_civi_12345)?

Adding the extra delimiter would reduce the legibility of usernames (which are only 16 char) but should improve it in the DB names (which are longer - and which we actually reference more often).

from amp.

michaelmcandrew avatar michaelmcandrew commented on June 23, 2024

Hey there,

The background for me was that reasonably short (using my definitition of reasonably short) prefixes were getting truncated and that was a bit frustrating.

I suspect that the extra 16 characters is going to be more than enough in this case.

Most likely out of scope of this ticket / just thinking aloud, there is the whole other question of whether you actually need to add randomness onto the end of the DB names.

from amp.

michaelmcandrew avatar michaelmcandrew commented on June 23, 2024

But to answer your specific points:

(a) go all the way to 64 chars

Yeah, why not? My understanding of createHintedRandom is that it only adds 5 characters of random so it will only generate a 64 character db name if $hint is very long.

(b) put a delimiter between the build and DB names (i.e. dmastercivi_12345 => dmaster_civi_12345)?

Also yes, that would be a great usability improvement.

from amp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.