Questions tagged [partition]

Use this tag for questions about code that partitions data, memory, virtual machines, databases or disks.

In computing, partition may refer to

  • Disk partitioning, the division of a hard disk drive
  • Partition (database), the division of a database
  • Logical partition (virtual computing platform) (LPAR), a subset of a computer's resources, virtualized as a separate computer
  • Memory partition, a subdivision of a computer's memory, usually for use by a single job
  • Binary space partitioning

source: https://en.wikipedia.org/wiki/Partition

Note that non-programming questions about database partitioning are likely to be better received on Database Administrators and disk partitioning on Server Fault.

1547 questions
0
votes
1 answer

Finding the k'th element in unsorted array using external function

I need to design an algorithm that finds the k'th smallest element in unsorted array using function that called "MED3": This function finds the n/3 (floor) and 2n/3 (ceil) elements of the array if it was sorted (very similar to median, but instead…
Ran
  • 35
  • 1
  • 7
0
votes
1 answer

Sage ('Python-like' language) Attribute error "IntegerListsLex_with_category.element_class" object

Given an integer k, I have programmed a way to take all partitions of k such that (1) each partition has at most n entries (where n is also given) (2) each partition does not have any repeated odd numbers. I also categorized the list of these…
B. Hall
  • 1
  • 1
0
votes
1 answer

How to force spark to perform reduction locally

I'm looking for a trick to force Spark to perform reduction operation locally between all the tasks executed by the worker cores before making it for all tasks. Indeed, it seems my driver node and the network bandwitch are overload because of big…
elldekaa
  • 166
  • 1
  • 1
  • 11
0
votes
1 answer

SQL output a rank of items given a different maximum rank per item

Here is the criteria I am looking for (1) rank data by region (2) include top 3 for two regions and top 5 for other region I am able to get criteria (1) using the query below: select rank() over (partition by region order by sales_score desc)…
Ariel
  • 928
  • 4
  • 15
  • 32
0
votes
1 answer

Taking the most commonly occuring (modal) value for several columns

I am cleaning records that have poorly recorded and inconsistent socio-demographic information over time, for the same person. I want to take the most commonly occuring value (the mode) for each person. One way to do that is to partition by id and…
user2964644
  • 189
  • 9
0
votes
1 answer

Partitions of a set - Storing results in a series of nested lists

I have code that will list all partitions of a set. The code is from this site: Generating the Partitions of a Set. Rather than just print the partitions out, I want to store them as lists. I want to model my result after what is returned in this…
0
votes
1 answer

SoftLayer API to get the ID for OS partition templates

I've been searching SLAPI to order a baremetal servers with partition template for OS. After I read some articles to order the RAID and configure the partition template data, I found that the ID or description of the OS is required to get the…
0
votes
0 answers

Cloning data partition to other Android devices

We have several devices running Android in an industrial environment. We think about completely setting up one device and then copy the whole /data directory to the other devices. The expected benefit is to configure things like wireless settings…
Droidum
  • 440
  • 2
  • 9
0
votes
1 answer

How many partitions should we use in Redis? As the data become larger, how can i rearrange the partition?

I m new to My team in which we store the customer data with Hash in Redis. now our customers up to a million, and the Hash partition number is 8 which is const in the Server Code, and we select the partition by the customer ID, which is number 1…
Tingur
  • 162
  • 2
  • 11
0
votes
1 answer

Create database partitioning for analyzing time-series

I have 100 000 sources/sensors/symbols. From each one I read a value on a daily basis. I load a database table with these daily data/values. One row for each value AND symbol, thats 100 000 rows per day. Query1: As I want to analyze daily data over…
0
votes
1 answer

How store data on servers close to the users location in Cassandra?

I'm currently thinking about the best way to handle customers all over the world with Cassandra. I assume I have got servers in America and Europe. Is there a mechanism to influence on which servers the data is stored? For a user in the US the data…
Spille
  • 527
  • 4
  • 12
0
votes
1 answer

Fourier transform on images with holes

This is a problem in our lab work recently I would like to fourier transform an image with several "holes" on it. Those holes are ellipses and of different orientations. E.g. an imgae with holes After fourier transform, some magnitudes would be…
siMpl3
  • 3
  • 2
0
votes
1 answer

kthSmallest method when an array/sub-array of integers is partitioned two parts with pivot at the end

So I think my partition method works but I cannot understand or figure out how to do the kthSmallest method. I no longer get out of bounds errors with my partition method which leads me to think that it works and with testing it seems to work.…
hjskeqwe
  • 175
  • 1
  • 9
0
votes
0 answers

Finding the kth smallest number in an array by partitioning the array using a pivot in Java

For my programming class we need to write a method to find the median number in an array. I understand the basic concept that to find the median you just need to find the kth smallest number where 'k equals array.size/2', but I cannot get my code to…
hjskeqwe
  • 175
  • 1
  • 9
0
votes
1 answer

mysql partitioning by date

I'm trying create a partition in mysql on a date column MV_DATE is of type DATE Here's the query - ALTER TABLE table_name PARTITION BY RANGE (TO_DAYS(MV_DATE))(PARTITION p0 VALUES LESS THAN (TO_DAYS('2015-08-31'))); I get the error A PRIMARY KEY…
usert4jju7
  • 1,653
  • 3
  • 27
  • 59