-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added FAQ and db dependencies to docs
- Loading branch information
1 parent
eff0beb
commit 0afa5d2
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FAQ | ||
=== | ||
|
||
|
||
Can I query/join multiple tables at one time? | ||
--------------------------------------------- | ||
Not directly no. A Caravel SQLAlchemy datasource can only be a single table | ||
or a view. | ||
|
||
When working with tables, the solution would be to materialize | ||
a table that contains all the fields needed for your analysis, most likely | ||
through some scheduled batch process. | ||
|
||
A view is a simple logical layer that abstract an arbitrary SQL queries as | ||
a virtual table. This can allow you to join and union multiple tables, and | ||
to apply some transformation using arbitrary SQL expressions. The limitation | ||
there is your database performance as Caravel effectively will run a query | ||
on top of your query (view). A good practice may be to limit yourself to | ||
joining your main large table to one or many small tables only, and avoid | ||
using ``GROUP BY`` where possible as Caravel will do its own ``GROUP BY`` and | ||
doing the work twice might slow down performance. | ||
|
||
Whether you use a table or a view, the important factor is whether your | ||
database is fast enough to serve it in an interactive fashion to provide | ||
a good user experience in Caravel. | ||
|
||
|
||
How BIG can my data source be? | ||
------------------------------ | ||
|
||
It can be gigantic! As mentioned above, the main criteria is whether your | ||
database can execute queries and return results in a time frame that is | ||
acceptable to your users. Many distributed databases out there can execute | ||
queries that scan through terabytes in an interactive fashion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ Contents | |
tutorial | ||
videos | ||
gallery | ||
faq | ||
|
||
|
||
Indices and tables | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters