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 9224993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:28:03+00:00 2026-06-18T04:28:03+00:00

My main storage is MySQL, but I have to use remote MSSQL Server, where

  • 0

My main storage is MySQL, but I have to use remote MSSQL Server, where book titles and IDs are stored. I have read-only access to that remote MSSQL Server. All other data (book author, year, description and so on) is stored in my local MySQL database. I can not store titles in my local MySQL (it is agreement conditions). My PHP-framework allows to add descriptions and many other data for these books – all data stored in MySQL.

Overall I am OK developing this framework, but I have one weak point. I need professional advice on how to organize search in that case. Since I use 2 different dbs I cant use simple joins or what ever. Of course, I can do two-step search: 1) get titles, 2) get other stuff, and then form results in PHP. But I am afraid it can be very slow. Is there a way to somehow select titles from MSSQL in temporary table of MySQL? Or may be I miss some good technology for such databases cooperation?
Any thoughts are highly appreciated!

  • 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-18T04:28:05+00:00Added an answer on June 18, 2026 at 4:28 am

    MySQL doesn’t know anything about MSSQL, so you cannot join across the two different kinds of database servers. However, your structure really isn’t too bad for what you describe. It seems to me that You have three possible search scenarios 1) search titles only 2) search titles and other info, 3) search other info only. You problem is in case 2, case 1 and 3 are both easy.

    The way I’d approach it is a two step process, as you mentioned, kind of like this:

    1) Get search query

    2) Get MSSQL results for any title that could possibly match

    3) Either a) write title results into a temporary table or b) store in a memory structure (depends on what you’re using for your search result scoring – if using MySQL fulltext search, need to write to temp table)

    4a) if titles are in a temp table, perform search on joined tables

    4b) if title are in memory, search other book info and join data in memory as necessary.

    You’re going to have some performance issues no matter what due to the limitation of not storing titles locally, but minimizing the number of queries will help.

    P.S. What exactly does your agreement say? Can you store the book titles in memory? Or do you always have to perform a query against the remote server? If you can store them in memory, maybe you could query the MSSQL database and put the titles in a MySQL memory table (http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html), which disappears from memory when the server shuts down.

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

Sidebar

Related Questions

I have a web application written in PHP. It uses MySQL for data storage.
My library is using isolated storage but only does so on demand. So I'm
I have a list of address in local storage stored as a JSON object.
Main problem: how do i group elements by their Date, only if continuous and
I had some thoughts back ago about using memcached for session storage, but came
I am restructuring a classifieds MySQL db where the different main sections are separated
In my application I have two threads a main thread which is busy most
I am developing an application which doesn't have large requirements for data storage. I
I have an Android library project and the main application that uses this library
What are the main differences between text and varchar in InnoDB storage engine at

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.