All Projects → lichaojacobs → kylin-jdbc-pool

lichaojacobs / kylin-jdbc-pool

Licence: other
better performance for kylin query

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to kylin-jdbc-pool

Java Interview Questions
1000+ Java Interview Questions
Stars: ✭ 212 (+1313.33%)
Mutual labels:  jdbc
doc
QuickPerf documentation: https://github.com/quick-perf/doc/wiki/QuickPerf
Stars: ✭ 22 (+46.67%)
Mutual labels:  jdbc
ramos
Generic backend pool
Stars: ✭ 30 (+100%)
Mutual labels:  pool
Quickperf
QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
Stars: ✭ 231 (+1440%)
Mutual labels:  jdbc
Hikaricp
光 HikariCP・A solid, high-performance, JDBC connection pool at last.
Stars: ✭ 16,146 (+107540%)
Mutual labels:  jdbc
ESPHome-Devices
A collection of ESPHome custom components, configuration files, and custom code for my various ESP8266/ESP32 devices that integrate with Home Assistant.
Stars: ✭ 83 (+453.33%)
Mutual labels:  pool
Java Persistence Frameworks Comparison
Comparison of non-JPA SQL mapping frameworks for Java (Jooq, Spring JDBCTemplate, MyBatis, EBean, JDBI, Speedment, sql2o)
Stars: ✭ 213 (+1320%)
Mutual labels:  jdbc
CryptoProfitSwitcher
Extensible profit switcher for crypto coins and algorithms
Stars: ✭ 49 (+226.67%)
Mutual labels:  pool
MiniDao
An powerful enhanced toolkit of SpringJdbc for simplify development
Stars: ✭ 200 (+1233.33%)
Mutual labels:  jdbc
couchbase-java-importer
This is a pluggable importer for Couchbase
Stars: ✭ 13 (-13.33%)
Mutual labels:  jdbc
Oauthserver
快速实现Spring Boot Oauth2授权服务,保护你的应用资源。
Stars: ✭ 238 (+1486.67%)
Mutual labels:  jdbc
Jaydebeapi
JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
Stars: ✭ 247 (+1546.67%)
Mutual labels:  jdbc
neth-proxy
Stratum <-> Stratum Proxy and optimizer for ethminer
Stars: ✭ 35 (+133.33%)
Mutual labels:  pool
Logstash Output Jdbc
JDBC output for Logstash
Stars: ✭ 230 (+1433.33%)
Mutual labels:  jdbc
Zeko-SQL-Builder
Zeko SQL Builder is a high-performance lightweight SQL query library written for Kotlin language
Stars: ✭ 87 (+480%)
Mutual labels:  jdbc
Gimel
Big Data Processing Framework - Unified Data API or SQL on Any Storage
Stars: ✭ 216 (+1340%)
Mutual labels:  jdbc
python-PooledProcessMixIn
Fast Concurrent Pool of preforked-processes and threads MixIn for python's socket server
Stars: ✭ 31 (+106.67%)
Mutual labels:  pool
kotlin-coroutines-jdbc
A library for interacting with blocking JDBC drivers using Kotlin Coroutines.
Stars: ✭ 40 (+166.67%)
Mutual labels:  jdbc
L3-37
Yet another Tokio connection pooler. May cause robot uprising.
Stars: ✭ 53 (+253.33%)
Mutual labels:  pool
AWR.Athena
Short R Wrapper for Athena JDBC connections
Stars: ✭ 23 (+53.33%)
Mutual labels:  jdbc

kylin-jdbc-pool

better performance for kylin query with spring boot project

spring boot version

  • 1.5.4.RELEASE

versions

  • 1.0.0 —— jdbc pool & RowMapper
  • 1.1.0 —— support muti data sources
  • 1.1.1 —— support gson SerializedName annotation
  • 2.0.0 —— refactor project architecture

how to use ?

first configure settings

kylin:
  project1:
    userName: admin
    password: KYLIN
    decrypt: true
    connectionUrl: jdbc:kylin://host:7070/project1
    maxWaitTime: 10000 #ms
  project2:
    userName: admin
    password: KYLIN
    decrypt: true
    connectionUrl: jdbc:kylin://host:7070/project2
    maxWaitTime: 10000 #ms

then try your business

@RunWith(SpringRunner.class)
@SpringBootTest
public class KylinJdbcPoolApplicationTests {

  @Resource(name = "project1JdbcTemplate")
  JdbcTemplate project1JdbcTemplate;
  @Resource(name = "project2JdbcTemplate")
  JdbcTemplate project2JdbcTemplate;

  @Test
  public void test() {
    int countResult = project1JdbcTemplate
        .queryForObject("select count(*) from SCHEMA.table",
            (resultSet, i) -> {
              return resultSet.getInt(1);
            });

    System.out.println("testResult: " + countResult);
  }

  @Test
  public void testRowMapper() {
    List<Demo> demoList = project1JdbcTemplate
        .query("select * from from SCHEMA.table limit 10",
            KylinRowMapper.getDefault(
                Demo.class));

    System.out.println(JSON.toJSONString(demoList));
  }

}

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].