Download presentation
Presentation is loading. Please wait.
Published byBrianna Singleton Modified over 9 years ago
1
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.comsales@basis.comwww.basis.com DBMS: Direct-Access and SQL File Types Nico Spence, Chief Marketing Officer Nick Decker, Engineering Supervisor BASIS International Ltd.
2
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 2 Overview ► BASIS DBMS Direct-result-set navigation and maintenance SQL-result-set navigation and maintenance ► New DBMS Objects BBjFileInfo BBjOpenFileInfo ► IOLISTS vs. Templates ► Extended File Types ► DBMS Deployment Options
3
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 3 New DBMS Objects ► BBjFileInfo Object Provides object-oriented way to access file information traditionally retrieved from the FID() and FIN() Associated with an open channel, so it provides a dynamic view of the file (methods always return current information) Retrieve information such as Filename Filesize Filetype Key information Record information
4
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 4 BBjFileInfo Demonstration
5
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 5 BBjOpenFileInfo ► Programmatic access to opened file information Advisory Locking Extracted File name Locked Open Type Read Only User ID String Host Name Force Close Documentation Link
6
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 6 BBjOpenFileInfo Demonstration
7
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 7 Extracted Record Demonstration
8
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 8 IOLISTS ► IOLISTs - legacy style of input with drawbacks Code using IOLISTs is less legible and more difficult to maintain 0100 IOLIST A$,B[ALL],C$,D,IOL=200 0200 IOLIST E$,F,G$ IOLISTs are significantly slower than string templates
9
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 9 String Templates ► String templates – modern input style with advantages Describes a record in a file or SQL result set Field name Data type (character, numeric, etc.) Fixed or variable length Terminators, padding characters
10
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 10 String Templates ► String templates (continued) Easy access to fields Required for SQL and SELECT verb access Significantly faster than IOLISTs Code is more legible and easier to maintain Can be retrieved via SQL GET TABLE INFO Text area in VKEYED File
11
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 11 Extended File Types ► XKEYED files ► JKEYED files ► VKEYED files ► ESQL Files
12
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 12 XKEYED File Type ► BBj offers more file types XKEYED files Unlimited number of keys Unlimited number of key segments Unlimited key length Smaller than MKEYED files Faster record iteration
13
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 13 XKEYED Demonstration
14
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 14 XKEYED Demonstration
15
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 15 JKEYED File Type ► BBj offers more file types (continued) JKEYED Files (Journaled Files) All file modifications are: ♦ Atomic – all operations completely succeed or completely fail ♦ Logged to automatically restore a potentially corrupt file to its last known good state
16
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 16 JKEYED File Type ► BBj offers more file types (continued) JKEYED Files (Journaled Files) Transaction Tracking ♦ Allows the programmer to define a set of operations on multiple files to be treated as a single operation ♦ Allows programmer to commit or rollback the entire operation
17
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 17 JKEYED File Type ► BBj offers more file types (continued) JKEYED Files (Journaled Files) True variable length records ♦ Perfect for BLOBs (Binary Large Objects) to store - Images - Audio - Video - Complete documents
18
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 18 VKEYED File Type ► BBj offers more file types (continued) VKEYED Files True variable length records ♦ Reduced disk usage ♦ Perfect for BLOBs (Binary Large Objects) to store - Images - Audio - Video - Complete documents
19
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 19 VKEYED File Type ► BBj offers more file types (continued) VKEYED Files (continued) Dynamic keys - add, remove, and change keys Named keys - reduce maintenance coding Text area - write string templates in the header
20
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 20 VKEYED File Type ► BBj offers more file types (continued) VKEYED Files (continued) REM Create a VKEYED file REM 64 is the expected average record size erase p_file$,err=*next vkeyed p_file$,[1:1:6],[2:1:3],[3:1:2:"D"],0,64
21
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 21 VKEYED Details Demonstration
22
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 22 BBjFileInfo ► BBjFileInfo Object (continued) Special VKEYED functionality Add keys Remove keys Change existing keys Set key names Set associated text
23
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 23 BASIS DBMS – New File Types
24
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 24 BASIS DBMS – New File Types
25
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 25 BASIS DBMS – New File Types
26
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 26 VKEYED File Size Demonstration
27
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 27 VKEYED File Speed Consideration ► Disk Speed ► Network Speed ► File structure ► Differences measured in milliseconds
28
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 28 BASIS DBMS – New File Types ► BBj offers more file types (continued) ESQL Files Exclusively for SQL access; not a BBj file Created via SQL ‘Create Table’ syntax ♦ Configured in the Database Properties section of the Enterprise Manager
29
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 29 BASIS DBMS – New File Types ► BBj offers more file types (continued) ESQL File Features Contains dictionary information in the file Supports variable length records Supports dynamic index creation Offers true SQL data types ♦ Numeric values with a precision and scale ♦ Dates & Timestamps - Stored as a native type - No longer require mapping to a column extension
30
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 30 BASIS DBMS – New File Types ► BBj offers more file types (continued) ESQL File Features (continued) Optimizations ♦ Performance gains - Faster inserts - Faster data retrieval ♦ Able to read a single column instead of always reading a whole row - No longer byte array based
31
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 31 BASIS DBMS – New File Types ► BBj offers more file types (continued) ESQL File Features (continued) Future enhancement possibilities include ♦ Identity columns (auto increment) ♦ Column and row constraints - Foreign key relations - Not NULL constraint - Default values ♦ Optional Case-Sensitivity ♦ Support for advanced ALTER TABLE syntax
32
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 32 ESQL Demonstration
34
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 34 BBj File Type Comparisons
35
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 35 DBMS Deployment Options ► Single-tier Thin Client Interpreter DBMS ► Two-tier Fat Client on different machines DMS on separate machine ► Three-tier Thin Client on different machines and the Interpreters running on the same machine with the DBMS Thin Client of different machines connecting to a centralized interpreter server that connects to a separate DBMS server
36
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 36 DBMS Redundant Deployment Options ► Load-balanced interpreter servers connecting to: Storage area network SAN connected to RAID High-availability servers Highly Recoverable File System Journaled File System
37
©1985-2006 All rights reserved. U.S. 1.800.423.1394 International +1.505.338.4188 Tech Support +1.505.345.5021 sales@basis.com www.basis.com sales@basis.comwww.basis.com 37 Summary ► BASIS DBMS Direct-result-set navigation and maintenance SQL-result-set navigation and maintenance ► New DBMS Objects BBjFileInfo BBjOpenFileInfo ► IOLISTS vs. Templates ► Extended File Types ► DBMS Deployment Options
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.