Skip to content

Commit

Permalink
readme: add Thinking Sphinx consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 1, 2008
1 parent 22dfba6 commit 5e3a9e1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.markdown
Expand Up @@ -43,6 +43,23 @@ Example usage:
Considerations
--------------

### Thinking Sphinx

Thinking Sphinx inspects the `connection` object to determine the database adapter.
Because masochism works by putting the connection proxy in its place, TS will be confused
about `ActiveReload::ConnectionProxy` and abort. A possible workaround is to monkeypatch TS right to **hardcode** our adapter after masochism has been enabled:

# ConnectionProxy from masochism confuses TS
ThinkingSphinx::Index.class_eval do
def adapter() :mysql end
end

ThinkingSphinx::AbstractAdapter.class_eval do
def self.detect(model)
ThinkingSphinx::MysqlAdapter
end
end

### Litespeed web server

If you are using the Litespeed web server, child processes are initialized on creation,
Expand Down

0 comments on commit 5e3a9e1

Please sign in to comment.