warehouse_db=# CREATE TABLE warehouse_tbl(warehouse_id INTEGER NOT NULL,warehouse_name TEXT NOT NULL,year_created INTEGER,street_address TEXT,city CHARACTER VARYING(100),state CHARACTER VARYING(2),zip CHARACTER VARYING(10),CONSTRAINT "PRIM_KEY"…
source: http://rostislav-matl.blogspot.com/2011/08/fast-inserts-to-postgresql-with-jdbc.html Thanks ! Fast Inserts to PostgreSQL with JDBC and COPY FROM Labels: batches, copy from, inserts, java, jdbc I was reading some materials on how to make datab…
http://codeofrob.com/entries/sqlite-csharp-and-nhibernate.html https://code.google.com/archive/p/csharp-sqlite/downloads https://github.com/davybrion/NHibernateWorkshop MySQL sql: #my sql test DROP TABLE Department; CREATE TABLE Department ( Id INT A…
why we need partitions The first and most demanding reason to use partitions in a database is to increase the performance of the database. This is achieved by partition-wise joins; if a user’s queries perform a lot of full-table scans, partitioning w…
warehouse_db=# create table item (item_id integer not null,item_name text,item_price numeric,item_data text);CREATE TABLEwarehouse_db=# create index item_idx on item(item_id);CREATE INDEX warehouse_db=# \di item_idx List of relations Schema | Name |…
PostgreSQL跨库访问有3种方法:Schema,dblink,postgres_fdw. 方法A:在PG上建立不同SCHEMA,将数据和存储过程分别放到不同的schema上,经过权限管理后进行访问. 方法A的示例如下: 测试1(测试postgres超级用户对不同schema下对象的访问) 查看当前数据库中的schema postgres=# \dn List of schemas Name | Owner -------------------+--------- dbms_job_pro…