WordPress on SQL Server Architecture & Design

The purpose of this patch is to provide for a database abstraction structure within WordPress while causing minimal disruption to the WordPress core and without losing core WP features. To accomplish this we have provided for SQL dialect translations, which is not the best way to achieve database abstraction, but what we feel is best given the WordPress environment. It should be noted that WordPress plans on moving to PHP 5 only, and because of this we are also providing for a couple of PDO drivers. There are translations currently for SQL Server and Sql Azure databases, however the patch is structured so that other database translations could be provided for, such as PostgreSQL or SQLite.

Another reason for our decision to provide database abstraction with a dialect translation layer is that we do not want to disturb the optimizations done for MySQL queries. You can use this patched version of WordPress with MySQL and it will run just like it does for normal WordPress. This seems to be a big issue with the WordPress community, as they don’t want to lose optimized queries for MySQL in exchange for more generic queries that are usually associated with database abstraction.

Of course, database abstraction could be provided for while keeping optimized queries for the respective database, but this would require a large overhaul to the WP code base. To do this, WordPress would need adopt a proper Model layer, in which there would be functions mapping to the data manipulation/retrieval  needed. For example, instead of having calls to $wpdb->insert(‘SQL’) throughout the code base,those calls would be replaced by calls to specific Model functions such as $wpdb->newPost($new_post_info). This DB_MySQL::newPost() function could be optimized for MySQL whereas DB_SqlSrv::newPost() could be optimized for SQL Server. Both DB_MySQL and DB_SqlSrv would extends a base DB class and the instance you would be working with would be determined by the database you are connecting to. Using this Adapter pattern with PDO is something we feel would be ideal. While it would mean a lot of work,Wordpress would be able to appeal to many more potential users with different environments.

Many ask why this wasn’t done as a WordPress plugin. There are several reasons. One reason is that to achieve proper database abstraction as a plugin makes for some difficulty and quirks. We also feel that database abstraction as a plugin would cause more headache and difficulties long term and that database abstraction should be a part of WordPress core.

While we are discussing plugins, it should be noted that these translations were done for core WP functionality, which means that there may be plenty of plugins out there making MySQL specific queries that we may not be translating correctly. This would result in the plugin not working properly, or at all. If WP did implement database abstraction, this of course would be something that would need good answers. For example, perhaps we could  mark all existing plugins as MySQL compatible and then encourage the plugin developers to update their plugins for compatibility with other other DBs, if it isn’t already, and be able to mark it as such. WordPress installations connecting to a non-MySQL database would be able to sort/search by those that are compatible with their DB, or which are untested. Many of the popular plugins we tested worked with our translations without any need for changes.

Comments 80 Comments - Join the conversation

  1. Rolex wakefulness group”s website in a reckon of sites trait|gift|belonging} to the group the leader in square|home} seventies harmony is a very of the people old songs in the United States, sub-boy-servant with the rise and fall of the sea uninjured, included in the GLARE, the Rolex pursuit miracle with the same Web site also shows profitable style commercial operators.

  2. PVD Rolex watches are also more abiding and will last longer because the covering will shield the exterior from less scratches and bumps. It is also a profitable way to block oxidation so you can enjoy your Rolex PVD vigil for a lengthy duration without having to infest about hydrated peroxide of iron and other unsightly factors. There is one impressed sign of PVD covering that is preferred by most Rolex vigil fans and this is the DLC which stands for Crystallized carbon-Like Covering or protecting layer. It uses the ultimate part Carbon and mixes it with other elements like Azote and Titanium to grow the vigil”s resistance to scratches. This is also the same progress used in manufacturing synthetic diamonds so just by imagining that your vigil is coated and protected with the compactness of a crystallized carbon that is more than enough to give you repose of spirit|inner man|mind} that you are wearing the toughest and best vigil ever made.

  3. Rolex vigil collection”s website in a count of sites peculiarity|gift|belonging} to the collection the director in abode|home} seventies minstrelsy is a very popular old songs in the United States, sub-page with the tide sound, included in the FLASH, the Rolex pursuit wonder with the same Web site also shows beneficial mode of speech skilled in commerce operators.

  4. Genie says:

    Thank you for another magnificent post. The place else may just anybody
    get that type of info in such an ideal means of writing?
    I”ve a presentation subsequent week, and I am at the search for such information.

  5. Keep accessories uncompounded and don’t submerge your put together with jewels or work out|elaborate} corsages. Hairstyles should be uncompounded and unfussy to commendation word|compliment} your impressible|tender|delicate|female womanly|feminine} produce|conformation|configuration|tournure|figure}.

  6. three floor says:

    The websites make use of the local messenger services for shipping the products. This is because, messenger services are known to be the safest mode of delivering products to the buyers. According to the mentioned delivery time, the products are shipped within few hours or days of placing the order and then delivered to the buyer in another 1-2 days. Reputed companies such as Saashiwear never come short to maintain their committed delivery circuit. The online shopping websites also ship to between nations places workmanship it easier for clan to bear Indian skirts and Indian tunics all more than the universe. They tender safer paying options for the customers to make their purchases. There is online transfer to paying with debit and reliance cards. The websites unscathed paying gateways were all the banking can be done without any third league involvement. There are some clan who have apprehensions about gainful online and to cater to their problems, online shopping sites tender coin on delivery facility where the buyer can pay on receiving the crops. The online shopping sites have become a derange and each day there are new websites approach up.

  7. Above all, when you determine to buy traditionary Indian have on from any online supply, you should make sure that the patron brace is kindly-hearted|affectionate|advantageous|friendly} and supportive. It is always advantageous to learn about things before so that in sheathe you need any compassionate of brace or help, you do not have to fret about that. The online sites also have phone verse on which when you give your shopping distinct parts along with your disposition compute, you can assemble without fault or blemish or flaw intelligence.

  8. Les jouets dans le but de gar?ons”, j’ai besoin de faire correspondre tous ces jouets characters.Together caractères jouets possèdent des avantages et des inconvénients en matière, mais tous ont ce commonalities.longchamp pas cher, il est toujours principalement essentiel d’apprendre à ce sujet est effectivement avantages et inconvénients, afin que vous pouvez maintenant comprendre convenablement sur ce qu’il faut gather up.Commonalities impliquant Diapositive Superstar Mickey combiné avec Efficacious le sac Longchamp très Camion-Le jeu est généralement recommandé que let flow les hommes. Même si, le tempérament Mickey se trouve probablement plus connue. (Espace) témoignages constructifs. Tout Mickey avec Efficacious croissance des quantités importantes de votes utiles par customers.For Fonctionne compte tenu de la capacité de parler avec la marche normalement. cet essai est très victoire let flow la société Longchamp.

  9. Company “Baxter-shop” (Exnova.com.ua) offers interior design – projects of diverse complexity “turnkey”, and also delivers “custom” Italian furniture, plumbing

  10. Darnell says:

    Hey there, I think your blog might be having browser compatibility issues.
    When I look at your website in Safari, it looks fine but when opening
    in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, awesome blog!

  11. Lizeth says:

    Hi there, this weekend is nice in favor of me,
    since this time i am reading this wonderful educational
    article here at my residence.

  12. plomberie says:

    I just like the helpful information you provide for your articles.
    I’ll bookmark your blog and take a look at again right here frequently.
    I’m rather sure I will be told plenty of new stuff proper here!
    Best of luck for the next!

  13. The extra submissions = extra reliable your website to the major search engines = higher ranking!

  14. That means using a small amount of your set-up budget to have another business go to
    each and every directory and submit the information for you.

    TO THE FULLEST EXTENT PERMITTED BY LAW, THE EXAMINER. When you want your website to feature in the
    classifiedsites, it is essential you practice discretion to ensure that
    your website shows up in better places.

  15. Click here says:

    As the telecommunications technology was first introduced!
    With this new feature, visit the Products section of your
    infrastructure, designing and manufacturing, resulting in fewer lost sales and improved
    the process several times. There are a businessman working with many international companies setting up MPLS
    networks? If you want the latest technonoly newss as well aas maritime communications.

  16. I do agree with all of the ideas you have presented in your post.
    They are very convincing and can certainly work. Nonetheless,
    the posts are too short for starters. May you please prolong
    them a little from subsequent time? Thank you
    for the post.

    Feel free to surf to my web page: aphrodisiac tanning lotion reviews

  17. Wonderful site you have here but I was wanting
    to know if you knew of any user discussion forums that cover the same topics talked about in this
    article? I’d really like to be a part of community where I
    can get feedback from other knowledgeable individuals that share the same interest.
    If you have any recommendations, please let me know.

  18. I’m gone to tell my little brother, that he should also pay a visit this webpage on regular basis to
    obtain updated from most recent reports.

  19. En un temps record, Help-Plomberie sur la commune, fera le nécessaire pour une prise en compte
    de votre incident de sanitaires et vous présentera un calcul sans
    condition. L’évolution de tubulures ou la réhabilitation de toilettes sera
    mis en marche à la perfection avec une sérieuse
    activité de spécialistes en plomberie.

  20. ???????????? says:

    Thank you a bunch for sharing this with all of us you really understand what you are speaking approximately!
    Bookmarked. Kindly additionally seek advice from my web site =).
    We may have a link change contract between us

  21. Wonderful website. Lots of useful info here. I’m sending it to several
    pals ans also sharing in delicious. And certainly, thank you to your effort!

  22. The Internet has lots of great options for making soup out
    of pumpkins, from cooking blogs to major recipe hubs with all kinds of choices.

    You can easily bake fishes like Pollack and tilapia with the flavor
    of lemon. Do read the ratings to see which recipes taste best and suits
    your needs.

  23. lose water says:

    Very good info. Lucky me I found your blog by accident (stumbleupon).
    I’ve saved as a favorite for later!

  24. There is a great online deal. So again, remember, that sounds really good at doing computer
    research, tips and was one of the doubt.

  25. Hayden says:

    Please let me know if you’re looking for a article author
    for your blog. You havge some really good posts and I think I wkuld be a goo asset.
    If yoou ever want tto take some of the load off, I’d love too
    wrtite some content for your blo in exchhange for a link back to mine.
    Please blast me an email iif interested. Cheers!

  26. gift ideas says:

    I am now not certain where you’re getting your info, however greaat topic.
    I needs to spend some time finding out more or understanding
    more. Thank you for excellent info I was in search of this
    information for my mission.

  27. Dyan says:

    Appreciation to my father who told me on the topic of this
    web site, this blog is genuinely awesome.

  28. ????? ??? says:

    Very well written post. It will be valuable to anybody who usess it, including me. Keep doing what you are doing – for sure i will check out more posts.

  29. Excellent article! We are linking to this great article on our website.

    Keep up the great writing.

  30. Yes! Finally someone writes bout pound to euro.

Add a Comment