MySQL Forums
Forum List  »  German

Performance von eigenen C++-Funktionen
Posted by: Mitch Köhler
Date: July 28, 2009 05:33AM

Hallo Gemeinde,

da ich noch Recht unerfahren auf dem Gebiet der eigenentwickelten MySQL-Funktionen bin, ein paar Fragen meinerseits an euch:

Ich habe eine String-Funktion in PHP umgesetzt.
Bei einem Benchmark der Funktion mit insgesamt 10.000 Wiederholungen brauchte diese z.B. 10 Sekunden.

Wenn ich die Selbe Funktionalität als MySQL-Funktion mit C++ implementiere, kann ich dann mit weitaus besserer Performance rechnen?

Ist es möglich mit MySQL selbst einen eigenen Index zu erstellen?
Kann ich mit einer eigenen C++-Funktion auf einen bestimmten Index zugreifen?

Ich wäre dankbar für jedes Feedback und jede passende Referenz.


---
Hello community,

I'm new at constructing own functions for MySQL at the moment and so I have some questions to you, hoping you can answering them.

I have implemented a string-function in PHP. A benchmarktest has shown, that the function needs e.g. 10 seconds to run 10.000 times.

Would I get a far better performance, if I implement the same functionality as a MySQL-fucntion in C++?

Is it possible to create an own index for MySQL?
Could I use own or MySQL-indexes for my self-implemented functions?

It would be great, if some of you can give me an answer or even an reference for reading.

Thank you!

Gruß/greets
Mitch

Options: ReplyQuote


Subject
Views
Written By
Posted
Performance von eigenen C++-Funktionen
2495
July 28, 2009 05:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.