Questions tagged [blackhole]

The BLACKHOLE storage engine acts as a “black hole” that accepts data but throws it away and does not store it. Retrievals always return an empty result.

The BLACKHOLE storage engine acts as a “black hole” that accepts data but throws it away and does not store it. Retrievals always return an empty result. When you create a BLACKHOLE table, the server creates a table format file in the database directory. The file begins with the table name and has an .frm extension. There are no other files associated with the table.

The BLACKHOLE storage engine supports all kinds of indexes. That is, you can include index declarations in the table definition.

You can check whether the BLACKHOLE storage engine is available with this statement:

mysql> SHOW VARIABLES LIKE 'have_blackhole_engine';

Uses:

  • Verification of dump file syntax.
  • Measurement of the overhead from binary logging, by comparing performance using BLACKHOLE with and without binary logging enabled.
  • BLACKHOLE is essentially a “no-op” storage engine, so it could be used for finding performance bottlenecks not related to the storage engine itself.
20 questions
67
votes
3 answers

What is the purpose of MySQL's BLACKHOLE Engine?

Why would you save something that you can't retrieve later on? What's the point?
Val
  • 17,336
  • 23
  • 95
  • 144
8
votes
1 answer

JMH - why do I need Blackhole.consumeCPU()

I'm trying to understand why it is wise to use Blackhole.consumeCPU()? Something I found about Blackhole.consumeCPU() on Google Sometimes when we run run a benchmark across multiple threads we also want to burn some cpu cycles to simulate CPU…
DRK
  • 127
  • 2
  • 6
3
votes
1 answer

Enable blackhole storage engine for mysql without recompiling mysql

Is it possible to enable/add the Blackhole storage engine to an existing MySQL server instance if it doesn't currently exist in the show engines command? MySQL 5.1 CentOs 6.5 Linux. Documentation seems poor in this regard.
GL2014
  • 6,016
  • 4
  • 15
  • 22
2
votes
1 answer

Why is cakePHP trowing Blackhole after change "disabled" field via jQuery?

I have a form with a checkbox and 2 select boxes. I have a javacript/jQuery function that disables the select boxes onces the checkbox is selected: function disable(id) { if($("#checkbox"+id).is(':checked')){ …
Wouter
  • 49
  • 1
  • 6
1
vote
1 answer

Stream audio from videoconference to azure speech translate using python

I am using a Mac and am trying to capture Zoom audio output as input for Azure speech-to-translation model using python and Blackhole. I have Zoom set to and am setting Azure translation_recognizer object to 'Multi-Output device' However, when I…
1
vote
0 answers

Is there any nullfs, black hole or void (virtual) drive/directory for Windows?

Is there any solution to have a (virtual) drive or directory so that data written to this drive/directory will not be stored (similar to nul or \dev\null)? For Linux we have programs like https://github.com/abbbi/nullfsvfs.
raubvogel
  • 126
  • 1
  • 8
1
vote
0 answers

routing audio data from application to virtual audio driver in MAC OS

I'm very new to mac os , I want to route the audio data captured from the real hardware mic/speaker to the virtual audio driver (null audio driver).How can I invoke the driver form my application and How to communicate between driver and…
its_vnj
  • 11
  • 2
1
vote
1 answer

Cakephp : Security Component and double click

I am using cakephp and security component for form and it is working well. But I have a question, every time someone double click on the send button (for example when someone use a form that send data in my database) they are blackholed. Probably…
Quentinv
  • 33
  • 4
1
vote
2 answers

How to create whirlpool/vortex effect?

Im trying to make a Vortex effect on a Circle Body that is a Sensor. I've been looking for this and all examples i look for are in C++ or Objective C and i dont seem to translate them well. when my objects collition, it calls beginContact(..) and…
Scanevaro
  • 33
  • 7
1
vote
0 answers

Honeypot: Close previous tab after after hidden link initiates target=_blank?

im trying to build a nice blackhoneyholepotdoom and something that annoys me is the fact bots are able to go back and/or switch tabs. Their behavior is: 1) hit login link, fail, go back. 2) hit register link, fail, go back. 3) Either leave or…
dhaupin
  • 1,613
  • 2
  • 21
  • 24
1
vote
1 answer

How do I get (external) data into CakePHP with Security on?

I'm implementing the Rabo OmniKassa (which is a bit like Paypal) into a CakePHP application. I've read the Rabo manual, I tested it on an 'empty' project (without Security) and it all worked perfectly. Now I'm implementing it in the actual…
Hartiism
  • 13
  • 5
0
votes
0 answers

Recording loopback using Blackhole on python

import soundcard as sc import soundfile as sf default_mic = sc.get_microphone('BlackHole 2ch') OUTPUT_FILE_NAME = "out1.wav" # file name. SAMPLE_RATE = 44100 # [Hz]. sampling rate. RECORD_SEC = 15 # [sec]. duration…
0
votes
0 answers

Reverse AODV in NS2 with blackhole attack

Hi everybody I am wanting to simulate the Reverse AODV protocol in NS2 with black hole attack. Can someone help me, many thanks I don't know how to change the AODV code in NS2 to the Reverse AODV protocol
0
votes
0 answers

How to solve no sound output from virtual audio device(BlackHole 2ch) when I use BlackHole to capture system output audio on Mac?

I have a conundrum: I'm using BlackHole try to capture system output audio on macOS, BlackHole drive can create an virtual audio device, like BlackHole 2ch, which supports 2 channels. when I select this virtual device as audio output device, I do…
Will Tang
  • 975
  • 1
  • 7
  • 17
0
votes
1 answer

Mysql master-master replication using blackhole engine

I've got a master-slave mysql replication using blackhole engine for some tables on slave, so I'm wondering what will happen if I enable master-master replication? Will the tables become empty on my 1st master?
sgsv
  • 1
  • 2
1
2