Your SlideShare is downloading. ×
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Csql Cache Presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Csql Cache Presentation

1,884

Published on

CSQL Caching enables applications to significantly improve its throughput. As data is cached on the main-memory database, cache delivers a real-time, dynamic, updatable cache for …

CSQL Caching enables applications to significantly improve its throughput. As data is cached on the main-memory database, cache delivers a real-time, dynamic, updatable cache for frequently accessed data in the disk based databases such as Oracle, MySQL or
Postgres.

Published in: Technology
1 Comment
2 Likes
Statistics
Notes
No Downloads
Views
Total Views
1,884
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
35
Comments
1
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. CSQL DATABASE CACHE Bijaya Kumar Sahu Database Developer Lakshya Solutions Pvt Ltd [email_address]
  • 2. What Is Next…
    • CSQL Cache Functionalities
    • CSQL Cache Configuration
    • Cache Tools
    Information About :
  • 3. What is CSQL Cache ? CSQL Cache is a client side caching mechanism for any disk-based database which increase the throughput of existing applications without requiring any application changes.
  • 4. CSQL Cache Functionalities
    • Updateable Cache Tables
    • Bi-Directional Updates
    • Synchronous and Asynchronous update propagation
    Cont…
  • 5. CSQL Cache Functionalities
    • Partial cache Updates
    • Multiple cache granularity
    • Recovery for cached tables
    Cont…
  • 6. CSQL Cache Functionalities
    • Tools to validate the coherence of cache
    • Transparent access to non-cached tables
    • Horizontally Scalable
    • Transparent Fail over
  • 7. CSQL Cache Configuration
    • CACHE_TABLE
    • CACHE_ID
    • DSN
    • ENABLE_BIDIRECTIONAL_CACHE
    • CACHE_RECEIVER_WAIT_SECS
    • TABLE_CONFIG_FILE
    For CSQL Cache Configuration , Following flag need to be set which is present in “ csql.conf ” file.
  • 8. Unidirectional Cache Configuration
    • CACHE_TABLE = true
    • CACHE_ID = 1
    • DSN = <Dsn name of target database>*
    • ENABLE_BIDIRECTIONAL_CACHE = false
    • CACHE_RECEIVER_WAIT_SECS = 10
    • TABLE_CONFIG_FILE = <path of table configure file>**
    For Unidirectional Caching, Set flags as below Cont…
  • 9. Unidirectional Cache Configuration
    • For Unidirectional Caching, Be sure that
    • CSQL server and target database is running.
    • Isql tool for target database working properly.
    • Use cache tool to cache table to Cache node.
  • 10. Bi-Directional Cache Configuration For Bi-Directional Caching, Set flags as below
    • CACHE_TABLE = true
    • CACHE_ID = 1
    • DSN = <Dsn name of target database>*
    • ENABLE_BIDIRECTIONAL_CACHE = true
    • CACHE_RECEIVER_WAIT_SECS = 10
    • TABLE_CONFIG_FILE = <path of table configure file>**
    Cont… * For MySql := myodbc3, For Postgres : = psql etc. ** By default path /tmp/csql/csqltable.conf
  • 11. Bi-Directional Cache Configuration Create log table in target database. For MySql : create table csql_log_int ( tablename char(64), pkid int, operation int , cacheid int, id int not null unique auto_increment) engine=‘innodb’ ; For Postgres : create table csql_log_int( tablename varchar(64), pkid int, operation int,cacheid int); alter table csql_log_int add id serial; Cont…
  • 12. Bi-Directional Cache Configuration
    • For Bi-directional Caching,
    • Run Trigger on key field of cached table.
    • Configure Isql tool for target database
    • Be sure CSQL server and target database server are running
    • Use cache tool to cache table to Cache node.
  • 13. Multiple Cache Node Configuration
    • For Multiple Cache Node Configuration
    • Change CACHE_ID in the csql.conf file as unique id for different cache
    • node.
    • Configure as per Bi-directional Cache Node.
    • Be sure CSQL server in each node and target database server are running.
    • Use cache tool to cache table into each Cache Node .
    • Make appropriate changes in trigger file.
  • 14. Cache Tools CSQL Cache have following Cache tools.
    • cachetable
    • cacheverify
    Cont…
  • 15. Cache Tools ( cachetable )
    • Full Caching
    • Partial Caching ( Record based & Field based )
    • Caching with Direct Updates
    CSQL supports three ways of caching mode Cont… To cache table from target database to cache node.
  • 16. Cache Tools ( cachetable ) Usage cachetable [-U username] [-P password] -t tablename [-D] -c &quot;condition&quot; -f &quot;selected field names&quot; -p fieldname [-R] [-s] [-r] username -> username to connect with csql. password -> password for the above username to connect with csql. tablename -> table name to be cached in csql from target db. Cont…
  • 17. Cache Tools ( cachetable ) fieldname -> field name to be specified for the bidirectional caching on which trigger to be run . R -> Recover all cached tables from the target database. s -> Load only the records from target db. Assumes table is already created in csql r -> Reload the table. get the latest image of table from target db Cont…
  • 18. Cache Tools ( cachetable ) u -> Unload the table. if used with -s option, removes only records and preserves the schema D -> Enable direct option. For any non select SQL statement directly interact with target database. no option -> Get table definition and records from target db and create in csql.
  • 19. Cache Tools ( cacheverify ) Usage cacheverify [-U username] [-P password] -t tablename [-p] [-f] username -> username to connect with csql. password -> password for the above username to connect with csql. Display the consistency in the specified cached table in between cache node and target database. Cont…
  • 20. Cache Tools ( cacheverify ) tablename -> cached table name in csql from target db. p -> verification at primary key field level f -> verification at record level ?-> help
  • 21. For More Information Visit… http://sourceforge.net/projects/csql/ http://www.csqlcache.com/ http://www.csqldb.com/

×