Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. JavaScript for SQL?

JavaScript for SQL?

Scheduled Pinned Locked Moved The Lounge
databasesysadminjavascriptmysqloracle
11 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jschell
    wrote on last edited by
    #1

    From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

    P K H D L 6 Replies Last reply
    0
    • J jschell

      From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      jschell wrote:

      reduce latencies, network overhead, and egress costs

      Definitely a worthwhile goal.

      jschell wrote:

      Same thing SQL already does.

      SQL Server? I use a lot of CLR (C#) functions in SQL Server for various parsing and formatting purposes which are not built-in.

      1 Reply Last reply
      0
      • J jschell

        From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

        K Offline
        K Offline
        k5054
        wrote on last edited by
        #3

        It could be worse. It could be Python.

        "A little song, a little dance, a little seltzer down your pants" Chuckles the clown

        1 Reply Last reply
        0
        • J jschell

          From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #4

          Aside from other's responses I'll add that given what I found out about JS limitations trying to do hashing and value equality semantics it's surprising that they'd choose JS of all languages to augment DB ops. I don't agree with any of it. Render unto SQL that which is SQL is my view. But say I did - JS wouldn't be the first language I'd choose to implement. Which brings me back to the crux of my comment the other day about JS, and how it's being used in many more places than it's ready for.

          Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

          P 1 Reply Last reply
          0
          • J jschell

            From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

            D Offline
            D Offline
            dandy72
            wrote on last edited by
            #5

            Now watch your SQL server implode because someone's starting to drag in dozens hundreds thousands of dependency libraries to perform some trivial task...

            L J 2 Replies Last reply
            0
            • D dandy72

              Now watch your SQL server implode because someone's starting to drag in dozens hundreds thousands of dependency libraries to perform some trivial task...

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              It's up there with "code behind" and "breaking" the MVVM model. Or using C# "custom code" in LINQ .Where() clauses. (Which I do all the time ... and love).

              "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

              1 Reply Last reply
              0
              • J jschell

                From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                It's up there with "code behind" and "breaking" the MVVM model. Or using C# "custom code" in LINQ .Where() clauses. (Which I do all the time ... and love).

                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                1 Reply Last reply
                0
                • H honey the codewitch

                  Aside from other's responses I'll add that given what I found out about JS limitations trying to do hashing and value equality semantics it's surprising that they'd choose JS of all languages to augment DB ops. I don't agree with any of it. Render unto SQL that which is SQL is my view. But say I did - JS wouldn't be the first language I'd choose to implement. Which brings me back to the crux of my comment the other day about JS, and how it's being used in many more places than it's ready for.

                  Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  honey the codewitch wrote:

                  Render unto SQL that which is SQL

                  For certain. No one language is the best at everything, but SQL is the best at what it does.

                  1 Reply Last reply
                  0
                  • J jschell

                    From CP newsletter https://www.infoq.com/news/2024/01/mysql-javascript-procedures/[^] MySQL (Oracle) is going to add JavaScript. So instead of using SQL. The article has this bit of sage advice... "enables developers to implement advanced data processing logic within the database. By minimizing data movement between the database server and client applications, stored functions and procedures can reduce latencies, network overhead, and egress costs" That seems familiar ... hmmm ... Oh! I know! Same thing SQL already does. Except that SQL is actually optimized to use the database. This is no different really than moving a JavaScript server into the MySQL application space. Oh sigh it gets even better. One suggestion... "data formatting," Because of course that is the best place to format the data to be human readable. But there is some relief - yeah! "there is no support in the MySQL Community Edition." The article does seem to suggest that the procs might be directly replaceable with the equivalent SQL. At least if they have enough sense initially to not make the database do what some other application should be doing instead. Makes me wonder how many places that pay for Oracle the licensing fees are going to have employees that using JavaScript is going to be a good idea? I doubt DBAs are going to jump on this.

                    D Offline
                    D Offline
                    DerekT P
                    wrote on last edited by
                    #9

                    But will it run DoomTM?

                    Telegraph marker posts ... nothing to do with IT Phasmid email discussion group ... also nothing to do with IT Beekeeping and honey site ... still nothing to do with IT

                    1 Reply Last reply
                    0
                    • D dandy72

                      Now watch your SQL server implode because someone's starting to drag in dozens hundreds thousands of dependency libraries to perform some trivial task...

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #10

                      lol Didn't even consider that. Other post mentions C# used in SQL Server (which I had forgotten) which has a similar problem.

                      D 1 Reply Last reply
                      0
                      • J jschell

                        lol Didn't even consider that. Other post mentions C# used in SQL Server (which I had forgotten) which has a similar problem.

                        D Offline
                        D Offline
                        dandy72
                        wrote on last edited by
                        #11

                        jschell wrote:

                        Didn't even consider that.

                        You know that's exactly how JavaScript "developers" will abuse it. If they have to make SQL usable with JS, it's because those JS developers lack, shall we say, the sophistication to use the tools that already exist and are better suited for the job. And if they don't have that sophistication, you know they ARE going to perpetuate the same mistakes they're already making.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups