Questions tagged [multiple-databases]
631 questions
0
votes
2 answers
Fail to create a superuser in django, when use a router
I tring to create mongodb/mysql project on Djago 1.11.4 with python3. I intended to use mysql for user authentification and mongodb for all other purposes. I master to create a users but failed in creating a superuser. Here is what happend, when I…

A. Bykov
- 288
- 1
- 16
0
votes
3 answers
Datawarehousing with ASP.NET MVC
On one server there are more than 20 databases with identical structure but different data. I need to collect some of the data (the same queries) from all databases and store in new database which is located on another server. I decided to use…

ilija veselica
- 9,414
- 39
- 93
- 147
0
votes
1 answer
Running migrations over multiple databases/Schema dump error
Anyone have a workaround (without monkey patching rails) for the failure of the db:schema:dump part of a simple migration accessing the wrong database for a table? I get the error
*Mysql::Error: View 'database1.boxscores' references invalid table(s)…

tesserakt
- 3,231
- 4
- 27
- 40
0
votes
1 answer
Django second DB returns None
To set up the two databases I followed the documentation which includes:
Adding the DB information in setting.py DATABASES={}
Created a matching model of the model from another DB
Run migrate (Which created a blank table for the model in second…

Mjguel
- 17
- 2
0
votes
0 answers
Two Contexts in a ASP.NET MVC application
I've this structure:
PGDbContext.cs code:
namespace Inspeccions.Models
{
public class PGDbContext : DbContext
{
public PGDbContext() : base( "ActivitatsEntities") { }
public virtual DbSet Usr { get; }
…

NorbertFD
- 51
- 7
0
votes
1 answer
Create and use multiple database for single application
I am creating a system which will have multiple customer. right now i am using same database and table for all customer but i think it'll slow down fetching of record when i'll have hundreds of customer's data in same database.
so should i create…

Bharat
- 93
- 11
0
votes
0 answers
error- No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined: expected single matching bean but found 2
MySQL, postgresql
I want to put the same data in the same name table.
Both databases have the same table.
error
WARN 2017-07-04 14:53:03 o.s.c.s.GenericApplicationContext - Exception encountered during context initialization - cancelling refresh…

Cha
- 51
- 1
- 6
0
votes
1 answer
error No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined: expected single matching bean but found 2
MySQL, postgresql
I want to put the same data in the same name table.
Both databases have the same table.
error
WARN 2017-07-04 14:53:03 o.s.c.s.GenericApplicationContext - Exception encountered during context initialization - cancelling refresh…

Cha
- 51
- 1
- 6
0
votes
0 answers
neo4j and Mongodb together lin
I'm trying to implement this notion of multiple databases.
I made a simple graph of a community and I had stored the informations of each node as a document in Mongodb.
Now I'm working on the query part, I dont find it clear when I return a subgraph…

Muna arr
- 353
- 2
- 13
0
votes
0 answers
YII 1 how to use multiple database in one application and one single login
YII 1.
I have multiple database
ex: db_company_a and db_company_b with same structure and table
and in every database have tbl_user and in tbl_user have company_id.
my question how to use single page login and redirect based on user login?
i have…

irfan syamsuri
- 41
- 6
0
votes
1 answer
How to handle multiple database by hibernate without multiple cfg.xml files
We have a Java-Hibernate based web application in which we deal with PostgreSQL database.(It is a single database having multiple schema(s) in it.)
Currently we are facing scalability issues so we have decided to split our schema(s) among multiple…

Manan Shah
- 1,042
- 2
- 14
- 26
0
votes
1 answer
Symfony Propel Multiple Database Error
I did it but It did not work.
I created:
propel.schema.xml
propel.schema.yml
# config/propel.schema.yml
propel:
article:
id: ~
the other db configuration is
orgdb.schema.xml

marianito
- 11
- 1
0
votes
0 answers
Spring boot with two datasources
I'm trying to set up a spring boot project with two datasources.
one for loading and one for storing.
application prop.
# Primary…

Anders Pedersen
- 2,255
- 4
- 25
- 49
0
votes
1 answer
make queries on multiple db in same action controller with transaction rails?
I have in my database.yml :
default: &default
[...]
development_1:
<<: *default
database: dev1
development_2:
<<: *default
database: dev2
I need to make many queries in foo action but using these 2 DB :
class UsersController <…

Matrix
- 3,458
- 6
- 40
- 76
0
votes
1 answer
Grails Multiple Datasource
What plugin or implementation that I can use for grails 1.3.7 to support multiple datasource?
I've already tried using the Datasources grails plugin 0.5 but it has an issue when the domain has defined unique constraints.

Noel
- 91
- 3