database-partitioning

Partition by Date and PK

I am designing a new laboratory database. My primary data tables will have at least id (PK NUMBER) and created_on (DATE). Also, for any two entries, the entry with a higher id will have a later created_on date. I plan to partition by created_on to increase performance on recently entered data. Since the columns increase together, t...

How to partition client sensitive data using Microsoft Sync Framework (v2 CTP 2)?

Hi, Our central database is to be synchronized in a hub & spoke fashion. We need to be able to partition the data in a way that client data is replicated locally only to that client. Has anyone faced this problem? MSF provides sync scopes - declarations of tables are to be sycned, with the option to specify a filtercolumn and filter ...

MySql Partitioning

Hi Guys, I'm trying to create partitions in one big table, but I'm getting this error: 1505 - Partition management on a not partitioned table is not possible There is any command to convert the table? Or do I have to create a new one and import all data? There is any problem when using Partitioning with Replication? Thanks in advanc...

Is it possible to partition more than one way at a time in SQL Server?

I'm considering various ways to partition my data in SQL Server. One approach I'm looking at is to partition a particular huge table into 8 partitions, then within each of these partitions to partition on a different partition column. Is this even possible in SQL Server, or am I limited to definining one parition column+function+scheme...

What is table partitioning?

In which case we should use table partitioning? ...

Partitioning a database table in MySQL

I am writing a data warehouse, using MySQL as the back-end. I need to partition a table based on two integer IDs and a name string. A more concrete example would be to assume that I am storing data about a school. I want to partition the school_data table based on COMPOSITE 'Key' based on the following: school id (integer) course_id (i...

mySQL KEY Partitioning using three table fields (columns)

I am writing a data warehouse, using MySQL as the back-end. I need to partition a table based on two integer IDs and a name string. I have read (parts of) the mySQL documentation regarding partitioning, and it seems the most appropriate partitioning scheme in this scenario would be either a HASH or KEY partitioning. I have elected for ...

Where does the law of diminishing returns come into play in regards to table partitions in SQL Server 2005?

I'm wondering if anyone out there has run into a realistic max number of table partitions in sql server 2005. I know that the docs state that there is a limit of 1000 partitions per table, but I have a hard time believing that, without a lot of hacking and mucking about, that 1000 partitions would be all that usable. Any help is appreci...

What should I keep in mind if I wish to merge many DBs into one DB?

I am working with a half dozen DBs. The DBs all have the same schemas, the same SPs, etc. Speaking to the person who originally designed the DBs, a big part of the motivation for using many DBs was efficiency; the alternative would be to add a column to pretty much every table and sp in the database indicating which set of data was bei...

SQL to skip running Create Partition Function under SQL Server Express

Our database schema is stored in a single file that is intended for production use but we also use when running functional tests on our local boxes. We drop the database and rebuild it from this file and then add a known set of test data. All was working well. Recently we added some performance improvements. The trouble came when we ...

Parition a table across multiple physical nodes

Hello, So I'm currently working on a project that involves the collection and storing of some huge datasets (as far as what I'm used to working with). The data essentially consists of meta information, and then actual values (where the values are trended over time). The meta information itself is relatively large, but nothing huge, I w...

Postgresql: split database between different machines

I want to partition a very large PostgreSQL 8.3 database. Quoting the manual, Partitioning can provide several benefits: ... Seldom-used data can be migrated to cheaper and slower storage media. What's the right way to relocate tables to another media or computer? Adam ...

PostgreSQL: Auto-partition a table

Hi, I have a huge database which holds pairs of numbers (A,B), each ranging from 0 to 10,000 and stored as floats. e.g., (1, 9984.4), (2143.44, 124.243), (0.55, 0), ... Since the PostgreSQL table which stores these pairs grew quite large, I have decided to partition it into inheriting sub-tables. I intend to create 100 such tables, ...

Mysql partitioning: Partitions outside of date range is included

Hi, I have just tried to configure partitions based on date, but it seems that mysql still includes a partition with no relevant data. It will use the relevant partition but also include the oldest for some reason. Am I doing it wrong? The version is 5.1.44 (MyISAM) I first added a few partitions based on "day", which is of type "date...

Is it OK to re-create many SQL connections (SQL 2008)

When performing many inserts into a database I would usually have code like this: using (var connection = new SqlConnection(connStr)) { connection.Open(); foreach (var item in items) { var cmd = new SqlCommand("INSERT ...") cmd.ExecuteNonQuery(); } } I now want to shard the database and therefore need to choose the c...

mysql partitioning

just want to verify that database partition is implemented only at the database level, when we query a partitioned table, we still do our normal query, nothing special with our queries, the optimization is performed automatically when parsing the query, is that correct? e.g. we have a table called 'address' with a column called 'country...

Database Desing - when to split data into multiple tables?

I have a table of Animals: Animals Id Name 1 Dog 2 Cat 3 Rabbit Each animal has a portfolio therefore I have two methods of defining the database tables. METHOD 1: Portfolio Id AnimalId Date 1 1 01/01/2001 2 2 20/03/2009 3 3 05/03/2009 4 1 01/04/2005 METHOD 2: DogPortfol...

SQL Server: A Grouping question that's annoying me

I've been working with SQL Server for the better part of a decade, and this grouping (or partitioning, or ranking...I'm not sure what the answer is!) one has me stumped. Feels like it should be an easy one, too. I'll generalize my problem: Let's say I have 3 employees (don't worry about them quitting or anything...there's always 3), a...

MAX() and MAX() OVER PARTITION BY produces error 3504 in Teradata Query

I am trying to produce a results table with the last completed course date for each course code, as well as the last completed course code overall for each employee. Below is my query: SELECT employee_number, MAX(course_completion_date) OVER (PARTITION BY course_code) AS max_course_date, MAX(course_completion_d...

how can you enable partitions in Oracle 10g Enterprise Edition for Windows?

I installed Oracle 10g Enterprise Editions onto Windows XP. It appeared that Partitions were installed as part of the default install, however the partitions functionality is not enabled. I can find instructions for enabling partitions on Unix/Linux, but not Windows. Has anybody had any success enabling partitions in 10g EE on their l...