Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

/var/lib/mysql grows indefinitely in size

Having the need to upgrade from Ubuntu Bionic to Ubuntu Focal, I made an upgrade from server 5.7 - deduced afterward - to 8.0 by simply inheriting the original /var/lib/mysql directory, that is I left ...
AppLEaDaY's user avatar
-1 votes
1 answer
23 views

I'd like to know how to monitor tablespaces

I'd like to know how to monitor tablespaces. I don't have much knowledge of Postgres. When I create a tablespace, how can I measure the tablespace size? How can I monitor the size of the tablespace so ...
Fernanda Afonso's user avatar
1 vote
1 answer
44 views

The size of my table is not growing

I couldn't see any growth in table size down to a single byte when I added 1 million rows in the table during the last days. I'm using this query: select table_name, pg_relation_size(quote_ident(...
Morgan's user avatar
  • 11
2 votes
1 answer
44 views

How do you make sure a data page can only have 3 rows

For a table with a setting of (fillfactor = 75) I am trying to make sure that each data page can only have 3 rows. select ((8192 * 0.75 - 24) / 3)- 4 - 24; -- returns 2012. First 24 is page header ...
jian's user avatar
  • 427
2 votes
1 answer
664 views

Difference between total table size and size of all pages in postgresql

Working with Postgres I noticed the following: When I run this query I get the total table size: SELECT pg_size_pretty( pg_table_size('tenk1') ); I get 384kb. And when I run: SELECT relpages FROM ...
user avatar
1 vote
1 answer
181 views

MySQL 5.7 --> MariaDB 10.8 switch: mysqlcheck --check --extended hangs on table

Recently I switched from MySQL 5.7 to MariaDB 10.8 and it's been generally great as a drop-in replacement, but I've run into a problem: the process for a cron job that daily runs /usr/bin/nice /usr/...
AJ Livingston's user avatar
5 votes
1 answer
606 views

Rebuild of DB fails, yet size of the DB has doubled

I attempted to rebuild all the indexes of a DB using the query, USE [DB_Name]; GO DECLARE @TableName VARCHAR(255) DECLARE @sql NVARCHAR(500) DECLARE TableCursor CURSOR FOR SELECT '['+...
theindianvenom's user avatar
1 vote
1 answer
2k views

How to delete MongoDB log files

We are using MongoDB 4.0.4 version for our project. The database configuration is done as below: Created a custom database in MongoDB and the service is running in authentication mode. Using Windows ...
Nandkishor Chavan's user avatar
3 votes
1 answer
1k views

SQL Server :: How many 8K pages are taken by this record?

I would like to see how many 8K pages are taken by a specific record. If you run this query on AdventureWorks2019: SELECT ProductID ,Name ,DATALENGTH(Name) AS SizeInBytes ,LEN(Name) AS ...
Francesco Mantovani's user avatar
0 votes
0 answers
47 views

How to customize jsonb field in postgresql to accept 40GB

Background I am data scientist. I had tried minimize my instance to smaller version, but unfortunately the recalculated result from smaller instance is wrong. After I check with the original value. I ...
sarit's user avatar
  • 285
0 votes
2 answers
2k views

Size of data in DB is much larger than size of data dumped to disk

I have a table that contains 99.9% of the data in the database. When I query the size of the table and database, I get: mydb=# SELECT pg_size_pretty( pg_database_size('mydb') ); pg_size_pretty ------...
s5s's user avatar
  • 141
0 votes
0 answers
49 views

Shrinking log files in SQL Server 2014

I ran sp_Blitz in our Production server over the weekend and it output a few results regarding the log file growth. Example: The database [MYDB] has a 104 GB transaction log file, larger than the ...
sqllover2020's user avatar
32 votes
3 answers
7k views

Why is the default page size for databases so small?

In PostgreSQL and SQL Server, the default page size is 8 KB, in MySQL is 16 KB and in IBM DB2 and Oracle it is only 4 KB. Why are these page sizes so small? Is there a historical or memory usage ...
Mate Michelisz's user avatar
0 votes
1 answer
1k views

Oracle 11g - Decreasing Big Table Size

I want to reduce the size of a table. I thought if I could do this with export / import, but when I check it with the ESTIMATE_ONLY option, it doesn't seem to work. I have no chance of using ...
jrdba123's user avatar
3 votes
2 answers
3k views

Table size without indexes in sql server

Using the following query I can get the size of the indexes for a table: SELECT i.name AS IndexName, SUM(page_count * 8) AS IndexSizeKB FROM sys.dm_db_index_physical_stats(db_id(),...
arthur's user avatar
  • 868
0 votes
1 answer
1k views

What is the available SQL Server Express database size? [duplicate]

SQL Server Express allows the maximum of 10GB/10240MB for a database size. I have a database which currently is ~8000 MB in size. The unallocated space is ~7000 MB. The question is: how many megabytes ...
user avatar
1 vote
0 answers
189 views

Postgresql index size: penalty for composite type?

My question refers to Postgresql 12.2. I have two almost identical tables, structure- and contentwise, the main difference being that the primary key of the second table is a composite type, while the ...
gernot's user avatar
  • 145
0 votes
1 answer
731 views

Mongodb index keeps growing in size eventhough the collection has a TTL index

I work on a mongodb sharded cluster (3.0.2 i know it's very outdated, not my call), on which i have a sharded db and a sharded collection on which i have multiple indexes. One of the indexes is a TTL ...
MrRobot's user avatar
  • 101
1 vote
2 answers
55 views

MySQL index size doesn't include all values

I have a table with ~1.4M rows and an id field as primary key and not all primary keys are included in index: mysql> SELECT DISTINCT(COUNT(id)) FROM my_table; +-------------+ | (COUNT(id)) | +------...
Panda Coder's user avatar
0 votes
2 answers
124 views

Size of a MyISAM table doubles after OPTIMIZE

I have this table: CREATE TABLE `foo` ( `CalculatedResultsId` int NOT NULL, `Md5Hash` char(32) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL, `SectionData` json NOT NULL ) ENGINE=...
Peter VARGA's user avatar
1 vote
2 answers
5k views

SQL Server : database free space vs data file free space

I don't understand well why the available space in database is 0% while in file is 98% available. Can you explain or advise? (SQL Server 2019, SSMS the newest, one datafile)
Martin Matuska's user avatar
2 votes
0 answers
212 views

How to find the column value with the biggest storage size in the DB?

Is there any way to find out which column value has the largest storage out of all tables in PostgreSQL DB? I'm looking for currently used storage, information_schema.column only shows the length of ...
Rj_N's user avatar
  • 408
0 votes
2 answers
230 views

Row size limits in Mysql w.r.t to TEXT and BLOB columns

There is a well-known limitation in Mysql for row size which 65,535 bytes. While going through the docs, I have found that BLOB and TEXT columns only contribute 9 to 12 bytes toward the row ...
Dinesh Kumar's user avatar
0 votes
2 answers
8k views

Calculating the total row size of a table - SQL Server

I have a table 'Connections' with the following schema in SQL Server: [ID] [int] IDENTITY(1,1) NOT NULL, [User] [nvarchar](20) NOT NULL, [UserID] [int] NULL, [True] [bit] NOT NULL, [Comment] [...
user1930901's user avatar
1 vote
1 answer
1k views

MongoDB: Is it possible to search for two fields whose array sizes don't match?

I have a collection that looks something like the following (I have simplified it a lot). I need to query any record that doesn't have the same number of customersAccepted entries as customersInvited. ...
PalaeoSam's user avatar
5 votes
2 answers
2k views

Table size grows indefinitely after deleting and then inserting the same data

I create a table and populate it with data: create table tab as select 'value' || level val from dual connect by level <= 10000; If I then delete all rows and insert the same data: delete from ...
Adamantium's user avatar
1 vote
2 answers
1k views

Calculate size of the filtered rows of a table in sql server

My requirement is to know the size occupied(count of records and size in mb) by a table during every 24 hours, I found query to get the whole size of a table but not sure on where to start with or how ...
Venkat's user avatar
  • 131
-1 votes
3 answers
11k views

Oracle data file size

My client’s tablespaces are autoextend off and i add monthly or bimonthly 3 or 6 gb space for tablespaces. Can you advise me if there is a recommended datafile size for Oracle 11gR2 on Windows 64 Bits?...
Hedi Fourati's user avatar
4 votes
2 answers
13k views

Appropriate tempdb size?

DBCC CHECKDB is failing on a particular database because of Could not allocate space for object 'dbo.SORT temporary run storage: 143479689576448' in database 'tempdb' because the 'PRIMARY' ...
jack's user avatar
  • 369
1 vote
2 answers
296 views

does pg_dumpall run vacuum?

Can someone confirm if pg_dumpall does a vacuum? I cannot explain the size differences between a local and dumped database but thinking duplicate/rewritten entries are ignored 350mb inside psql with \...
dquake's user avatar
  • 11
0 votes
2 answers
122 views

Considerable size difference between mysql versions

We usually employ different MySQL versions for different scenarios. And I realized that similar databases, whith the same amount of tables and data, just because of different mysql versions differs in ...
Hudson Santos's user avatar
2 votes
1 answer
851 views

Calculating total "on row" bytes for each row ... the easy way

We want to calculate the total "on row" storage bytes for each row in the table. As we understand it, we must add up the DATALENGTH() of each column while also accounting for NULLs and things like ...
UnLogicGuys's user avatar
14 votes
1 answer
13k views

Why *not* ERROR: index row size xxxx exceeds maximum 2712 for index "foo"?

We have repeatedly seen failing attempts to index columns with values exceeding a maximum size. Postgres 10 has this kind of error message for it: ERROR: index row size xxxx exceeds maximum 2712 for ...
Erwin Brandstetter's user avatar
1 vote
1 answer
86 views

How to know exactly when my Database / Log files grew?

Is there a way to see when (history / log records) of .mdf / .ldf files grew? Ultimately, is it possible to setup alerting and know immediately when my database / log files grow?
Aleksey Vitsko's user avatar
1 vote
1 answer
5k views

Reasonable values for thread_cache_size in relation with Connections [closed]

I want to know reasonable values for thread_cache_size in relation with the connections that you have. Which is the good proportion? And which proportions do you handle in relation with your clients ...
Matias Ruiz's user avatar
2 votes
2 answers
2k views

MySQL: optimize column size

I need a tool/command which will check a table then say something like that: columnA use tinyint instead of int columnB use enum instead of varchar I've seen something like this while ago so I do ...
Putnik's user avatar
  • 285
2 votes
2 answers
1k views

Insert 2 output result sets from sp_spaceused into Temp Table (SQL Server non-2016)

sp_spaceused, when executed without any parameters, produces 2 result sets database_name, database_size, unallocated_size reserved, data, index_space, unused Usually when you execute some SP, you ...
Aleksey Vitsko's user avatar
0 votes
1 answer
767 views

Why is my biggest segment resulting in an empty table?

I'm trying to identify top tables by size in my Oracle DB, I tried with select segment_type, segment_name, sum(bytes/1024/1024) MB from user_segments s where segment_type like ...
Luigi Cortese's user avatar
12 votes
2 answers
2k views

Find uncompressed size of all tables in a database

In Dynamics AX there is a caching mechanism where tables can be configured to be loaded into memory and cached. This cache is limited to a certain amount of KB to prevent memory issues. The setting I'...
Tom V's user avatar
  • 15.6k
4 votes
2 answers
230 views

Alert on Table size

I need to create an alert on my application table when it reaches 98% of its threshold. I wrote an SP which checks the rows and logs the information into a log file which was monitored by alert system ...
Sakshi Sharma's user avatar
-1 votes
1 answer
118 views

varray size can be a variable?

I need to create a varray, and its size must be a parameter of the procedure, for example create or replace procedure x (cant number) as type arreglo is varray(cant) of number; elarreglo arreglo :=...
Barbara's user avatar
0 votes
1 answer
593 views

Storing a json string that is 10 kb in size in a SQL Server CE cell

I have a SQL Server CE database in which I have column that takes values of json strings. These json strings are above 9kb as a result of which I am unable to use varchar or char. I guess I could ...
AnOldSoul's user avatar
  • 471
2 votes
2 answers
3k views

Microsoft SQL database table size

I have come across a sizing issue with my database tables becoming too large. Some digging has shown that it is how MS SQL stores the information. I created two test tables and filled them with data: ...
Darren's user avatar
  • 23
5 votes
4 answers
16k views

In Postgres, set log_rotation_size but my logs are still not rotating

I’m using Postgres 9.5 on Ubuntu 14.04. I wanted to rotate my logs whenever they reach a certain size. So I edited /etc/postgresql/9.5/main/postgresql.conf and set this log_rotation_size = 50MB ...
Dave's user avatar
  • 643
2 votes
1 answer
8k views

How do I limit the size of my Postgres log?

I’m using Postgres 9.5 on Ubuntu 14.04. I notice I’m generating a lot of Postgres logs in /var/log/postgresql/postgresql-9.5-main.log . I would like to limit the size of this file, and doing some ...
Dave's user avatar
  • 643
2 votes
2 answers
252 views

SQL Server Database size unchanged after dropping File column

I have a database with a table that has about 10 000 records. One of the columns in this table is a VARBINERY(MAX) that is used to store images. A backup of this database is about 1.2GB. It's size as ...
Carel's user avatar
  • 125
0 votes
1 answer
101 views

Difference in size of table between InnoDB and MEMORY engines

Question The same table stored on hard drive (InnoDB engine) takes 930.72 MB when in Ram (MEMORY engine) it takes 1538.54 MB. For what reason? How to calculate space needed to save data in memory? ...
Daniel's user avatar
  • 209
2 votes
1 answer
2k views

Using pg_prewarm to load X number of latest rows into cache

We have a large query that is extra slow when customers "run it the first time, early in the morning..." So, I found pg_prewarm that I would like to use load into PG's buffer cache a certain amount ...
zam6ak's user avatar
  • 471
-1 votes
2 answers
1k views

How can I estimate the size of a new table?

We have tables with a lot of data (50M new rows each month, just in one table). Now I want to know what would be the impact of adding a new column to those tables, or creating a new table. Something ...
greenkey's user avatar
  • 109
0 votes
1 answer
2k views

MySql show content of ibdata1 file, block rising exponentially, why is it growing so fast?

I have a database with most of tables being stored on the InnoDB engine, however an alert raised the other day showing up that the ibdata1 file was growing exponentially. For what I searched so far, ...
BlackStar's user avatar