You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dm...@apache.org on 2018/07/23 22:29:55 UTC
svn commit: r1836520 - in /ignite/site/trunk: arch/memorycentric.html
features/sql-2.html features/sql.html
Author: dmagda
Date: Mon Jul 23 22:29:55 2018
New Revision: 1836520
URL: http://svn.apache.org/viewvc?rev=1836520&view=rev
Log:
updated SQL page
Removed:
ignite/site/trunk/features/sql-2.html
Modified:
ignite/site/trunk/arch/memorycentric.html
ignite/site/trunk/features/sql.html
Modified: ignite/site/trunk/arch/memorycentric.html
URL: http://svn.apache.org/viewvc/ignite/site/trunk/arch/memorycentric.html?rev=1836520&r1=1836519&r2=1836520&view=diff
==============================================================================
--- ignite/site/trunk/arch/memorycentric.html (original)
+++ ignite/site/trunk/arch/memorycentric.html Mon Jul 23 22:29:55 2018
@@ -145,7 +145,7 @@ under the License.
<td>
<p>
100% of data is stored in <a href="/arch/memorycentric.html#native-persistence">Ignite native
- persistence</a> and smaller subset of data is cached in memory. The more data is cached in
+ persistence</a> and the same or smaller amount is cached in memory. The more data is in
memory, the faster is the performance. The disk serves as the primary storage that survives
any type of cluster failures and restarts.
</p>
Modified: ignite/site/trunk/features/sql.html
URL: http://svn.apache.org/viewvc/ignite/site/trunk/features/sql.html?rev=1836520&r1=1836519&r2=1836520&view=diff
==============================================================================
--- ignite/site/trunk/features/sql.html (original)
+++ ignite/site/trunk/features/sql.html Mon Jul 23 22:29:55 2018
@@ -33,7 +33,7 @@ under the License.
<!DOCTYPE html>
<html>
<head>
-<link rel="canonical" href="https://ignite.apache.org/features/sql.html" />
+ <link rel="canonical" href="https://ignite.apache.org/features/sql.html" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Distributed SQL - Apache Ignite</title>
@@ -56,20 +56,13 @@ under the License.
<div class="col-sm-6 col-md-7 col-xs-12" style="padding-left:0;">
<p>
Apache Ignite comes with ANSI-99 compliant, horizontally scalable and fault-tolerant
- distributed SQL database. The distribution is provided either by
- <i>partitioning</i> the data across cluster nodes or by full <i>replication</i>, depending on the
- use case.
+ distributed SQL database. You can interact with Ignite as you would with any other SQL storage, using standard JDBC or ODBC
+ connectivity. Ignite also provides native SQL APIs for Java, .NET and C++ developers for better performance.
</p>
<p>
- Unlike many distributed SQL databases, Ignite memory-centric storage
- treats both memory and disk as active storage tiers. The disk tier, a.k.a.
- <nobr><a href="/arch/persistence.html">native persistence</a></nobr>, is disabled by default,
- in which case Ignite becomes a pure
- <nobr><a href="/use-cases/database/in-memory-database.html">in-memory database</a> (IMDB)</nobr>.
- </p>
- <p>
- You can interact with Ignite as you would with any other SQL storage, using standard JDBC or ODBC
- connectivity. Ignite also provides native SQL APIs for Java, .NET and C++ developers for better performance.
+ Unlike other distributed SQL databases, Ignite memory-centric storage treats both memory and disk as active storage tiers.
+ The disk tier, a.k.a. <nobr><a href="/arch/persistence.html">native persistence</a></nobr>, is disabled by default,
+ in which case Ignite becomes a pure <nobr><a href="/use-cases/database/in-memory-database.html">in-memory database</a> (IMDB)</nobr>.
</p>
</div>
@@ -77,42 +70,52 @@ under the License.
<img class="img-responsive" src="/images/sql_database.png" width="400px" style="float:right;"/>
</div>
</div>
+ <div class="page-heading">SQL Joins</div>
<p>
- One of Ignite's distinguishing characteristics is the full support for
- <nobr><a href="https://apacheignite-sql.readme.io/docs/distributed-joins" target="_blank">distributed SQL JOINs</a></nobr>.
- Ignite can join data in both collocated and non-collocated fashions. When <i>collocated</i>,
- the JOINs are executed on the local data available on each node without having to move large
- data sets across the network. Such approach provides the best scalability and performance
+ Ignite can <nobr><a href="https://apacheignite-sql.readme.io/docs/distributed-joins" target="_blank">join data</a></nobr>
+ in both collocated and non-collocated fashions. When <a href="/features/collocatedprocessing.html">collocated</a>,
+ the JOINs are executed on the nodes where the data is stored, avoiding
+ expensive serialization and network trips. Such approach provides the best scalability and performance
in distributed databases.
</p>
+
+ <div class="page-heading">SQL and In-Memory Mode</div>
<p>
- In addition to standard SQL features, Ignite also provides powerful processing APIs:
- <ul class="page-list">
- <li>
- <a href="/features/datagrid.html">Key-Value APIs</a> - Ignite key-value APIs allow to
- interact with Ignite as with a <nobr><a href="/use-cases/database/key-value-store.html">key-value store</a></nobr>.
- In addition to standard key-value operations supported by
- <nobr><a href="/use-cases/caching/jcache-provider.html">JCache (JSR 107)</a></nobr> standard,
- Ignite also provides extended support for distributed ACID transactions, continuous queries, partition scans, and more.
- </li>
- <li>
- <a href="/features/collocatedprocessing.html">Collocated Processing</a> - this approach allows you to
- execute distributed SQL JOINs or custom user logic exactly on the nodes where the data is stored, avoiding
- expensive serialization and network trips.
- </li>
- </ul>
+ Apache Ignite can function in a pure in-memory mode in which all data and indexes are stored entirely
+ in RAM. In this scenario, you can achieve the maximum performance possible because the data is never
+ written to disk. As with any other in-memory database, configure backup copies of the data to
+ prevent possible data loss in case of cluster nodes failures.
</p>
+ <div class="page-heading">SQL and Native Persistence</div>
<p>
- See also:
- <ul class="page-list">
- <li>
- <a href="https://apacheignite-sql.readme.io/docs/getting-started" target="_blank">Get Started with Ignite SQL</a>
- </li>
- <li>
- <a href="https://apacheignite-sql.readme.io/docs/overview" target="_blank">More on SQL Capabilities</a>
- </li>
- </ul>
+ In this mode, <a href="/arch/persistence.html">Ignite native persistence</a> serves as the primary
+ storage that survives any type of cluster failures and restarts. 100% of data and indexes are
+ persisted to disk and the same or smaller amount is cached in memory.
+ </p>
+ <p>
+ Ignite always queries on-disk data if a value or index is missing in memory. If RAM resources are
+ scarce, you'll find Ignite caching the most frequently used indexes there over the data. This policy helps
+ to run high-performant SQL queries even if memory resources are limited.
+ </p>
+ <p>
+ On a restart, Ignite will be reading data and indexes from disk not requiring you to warm the memory up.
+ This significantly decreases a potential downtime.
+ </p>
+
+ <div class="page-heading">SQL and 3rd Party Databases</div>
+ <p>
+ Finally, Ignite can be used as a caching layer (aka. data grid) above an existing 3rd party database -
+ RDBMS, NoSQL, or HDFS. This mode is used to accelerate the underlying database. Ignite provides read-through and
+ write-through capabilities to read and write database records.
+ </p>
+ <p>
+ In this mode Ignite requires the whole data to be preloaded into caches for SELECT queries,
+ it propogates all updates - INSERT, UPDATE, DELETE - to the database.
+ </p>
+
+ <p>
+ Want to learn more? See <a href="https://apacheignite-sql.readme.io/docs/overview" target="_blank">Ignite SQL Capabilities</a>
</p>
<div class="code-examples">
@@ -553,7 +556,7 @@ under the License.
while (cursor.HasNext())
{
QueryFieldsRow row = cursor.GetNext();
-
+
std::cout << "Person: " << row.GetNext<std::string>() << ", "
<< "City: " << row.GetNext<std::string>() << std::endl;
}