use sql or scripting language to do analysis in a databaseNested queries or temp (#) tables in SQL...

Build ASCII Podiums

How do I write a maintainable, fast, compile-time bit-mask in C++?

Does the kobold player race feature, Pack Tactics, give ranged attacks advantage?

How would a coma-like death system work on an alien world?

Short story where Earth is given a racist governor who likes species of a certain color

Badly designed reimbursement form. What does that say about the company?

Why is ra lower than re while la is higher than le?

Why don't reads from /dev/zero count as I/O?

Can you wish for more wishes from an Efreeti bound to service via an Efreeti Bottle?

How sharp are RAW photos before processing?

How can I make my enemies feel real and make combat more engaging?

Is Screenshot Time-tracking Common?

Ramanujan's radical and how we define an infinite nested radical

Sing Baby Shark

How to play songs that contain one guitar when we have two or more guitarists?

Why do BLDC motor (1 kW) controllers have so many MOSFETs?

Identical projects by students at two different colleges: still plagiarism?

How can changes in personality/values of a person who turned into a vampire be explained?

How to encourage team to refactor

Where can I educate myself on D&D universe lore, specifically on vampires and supernatural monsters?

What is the correct way to shuffle?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Discouraging missile alpha strikes

How long will my money last at roulette?



use sql or scripting language to do analysis in a database


Nested queries or temp (#) tables in SQL ServerStoring summed valuesCoding an accounting database from scratch?Launching a python script from an insert triggerGO After every T-SQL statement(MySQL) user table and profile separate, or same table?Adding new stored procedure to the exisiting database using connectors?Should I do the maths within PostgreSQL for ACIDity?Select after an Uncommited Update in Python-MySQLdbDoes SSMS v17 allow user input in Python scripts?













0















More of a general question but is it more efficient to write python code to run mathematical analysis or complex queries in sql itself. What is considered best practice.










share|improve this question














bumped to the homepage by Community 5 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    More of a general question but is it more efficient to write python code to run mathematical analysis or complex queries in sql itself. What is considered best practice.










    share|improve this question














    bumped to the homepage by Community 5 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      More of a general question but is it more efficient to write python code to run mathematical analysis or complex queries in sql itself. What is considered best practice.










      share|improve this question














      More of a general question but is it more efficient to write python code to run mathematical analysis or complex queries in sql itself. What is considered best practice.







      mysql best-practices python






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 1 '16 at 4:12









      user3170242user3170242

      83




      83





      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 5 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          SQL has a lot of overhead, so I would not want to, say, invert a matrix in SQL. It will be a lot faster to read all the data, then perform the math in python (or any other language), even if your language does not have as many 'array' operations as SQL has.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f148501%2fuse-sql-or-scripting-language-to-do-analysis-in-a-database%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            SQL has a lot of overhead, so I would not want to, say, invert a matrix in SQL. It will be a lot faster to read all the data, then perform the math in python (or any other language), even if your language does not have as many 'array' operations as SQL has.






            share|improve this answer




























              0














              SQL has a lot of overhead, so I would not want to, say, invert a matrix in SQL. It will be a lot faster to read all the data, then perform the math in python (or any other language), even if your language does not have as many 'array' operations as SQL has.






              share|improve this answer


























                0












                0








                0







                SQL has a lot of overhead, so I would not want to, say, invert a matrix in SQL. It will be a lot faster to read all the data, then perform the math in python (or any other language), even if your language does not have as many 'array' operations as SQL has.






                share|improve this answer













                SQL has a lot of overhead, so I would not want to, say, invert a matrix in SQL. It will be a lot faster to read all the data, then perform the math in python (or any other language), even if your language does not have as many 'array' operations as SQL has.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 1 '16 at 18:51









                Rick JamesRick James

                42.9k22259




                42.9k22259






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f148501%2fuse-sql-or-scripting-language-to-do-analysis-in-a-database%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

                    Always On Availability groups resolving state after failover - Remote harden of transaction...

                    Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...