Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8322319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:20:56+00:00 2026-06-08T23:20:56+00:00

It is possible use Sphinx RT index in conjunction with Mysql innodb table for

  • 0

It is possible use Sphinx RT index in conjunction with Mysql innodb table for transaction support?

For example I have a table products in mysql and I build a real time index in Sphinx for full text search. When a product row is update in mysql, I want that in real time also index in Sphinx must be update,in order to have immediately full text search on update product, but all in consistency way.

If product row update fails or real time index update fails all must rollback to avoid inconsistency. It is possible? How can I obtain this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:20:57+00:00Added an answer on June 8, 2026 at 11:20 pm

    Yes it is possible, but it has some quirks. Sphinx has support for transaction (begin / statement / (commit, rollback)) but it is limited to a single real time index. This means that, if you want to write to multiple indexes in a single transaction it won’t work.
    Say you have the following mysql tables and sphinx real time indexes with a direct corespondence between them:

      posts_db      -> posts_rt
      comments_db   -> comments_rt
    

    in mysql it’s easy to write to both tables in a single transaction:

    START TRANSACTION;
        INSERT INTO posts_db ...;
        INSERT INTO comments_db ...;
    COMMIT or ROLLBACK; // so far everthing ok
    

    but if you want to do the same with sphinx, it will fail:

    START TRANSACTION;
        INSERT INTO posts_rt ...;
        // when executing the next statement you'll get an error
        INSERT INTO comments_rt ...;  // ERROR 1064 (42000): current txn is working with another index ('posts_rt')
    

    in sphinx you can only work with a single index at a time:

    START TRANSACTION;
        INSERT INTO posts_rt ...;
    COMMIT or ROLLBACK; // so far everthing ok
    
    START TRANSACTION;
        INSERT INTO comments_db ...;
    COMMIT or ROLLBACK; // so far everthing ok
    

    And this sucks!!! It’s fine for single index application, but for other cases you have to emulate transaction with php or whatever you’r using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, I have a question about Sphinx. I use Sphinx to index the
Is it possible use a MySQL query to perform this kind of check? If
Possible Duplicate: Choosing a stand-alone full-text search server: Sphinx or SOLR? I will use
Is it possible to use Sphinx autodoc to generate documentation for my fabfile, from
I have recently started looking into Google Charts API for possible use within the
I have reviewed DashCommerce, nopCommerce and DotShoppingCart for possible use and all of them
Is it possible use in-explicit constructing with operators ? Just like in this example
Possible Duplicate: Use of .apply() with 'new' operator. Is this possible? I have 5
Is it possible use RESTKit with ASIHTTPRequest? I have been using ASIHTTPRequest but it
Is it possible use mod_rewrite to resolve addresses hosted on another server? Say I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.